get job id of its own

Post any question regarding setting up, running or configuring Verj.io Workflow

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

get job id of its own

#1

Postby xren » Tue Jun 14, 2016 6:19 pm

Hi,

How can I get the job id of a job's own?

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Jun 15, 2016 8:11 am

It's in system variable $JOB_ID i.e.

Code: Select all

var jobId = system.variables.$JOB_ID.value;
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Wed Jun 15, 2016 2:18 pm

Does system.variables.$JOB_ID have one instance with value for each job?
so when I call this from my job I will get the right one for my job?

I mean what is the scope of this variable?
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#4

Postby xren » Wed Jun 15, 2016 2:43 pm

Can I assume that all system variables e.g. _COMPLETE, NEXT_STEP, etc. are all job and node specific (per instance per job, node)?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#5

Postby Jon » Wed Jun 15, 2016 3:16 pm

I think mostly they are pretty obvious and do what you would expect - see http://www.ebasetech.com/ebase/doc/Work ... c417392058 for more details
0 x


Who is online

Users browsing this forum: No registered users and 2 guests