Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Job ID Capture
fbuno
Does anybody know how to capture the Workflow Job Number into a workflow file (wft)? is it $wfid?
Find more posts tagged with
Comments
james1
The ultimate output of a WFT is a job specification document, which the iwwft_instantiator.cgi then feeds to iwserver, which creates a job and gives it an ID. So, I do not believe that the job's ID is available in the WFT, because it hasn't been assigned yet.
However, any externaltask or cgitask should have access to this piece of data.
Why do you need it?
-- James
akshathp
IN your external task script, you could use TeamSite::WFtask and TeamSite::WFworkflow utilities. If you check in the perldoc, you will find functions for this operation. GetWorkflowId or GetId and many more.
Hope this helps.
Akshat Pramod Sharma
Interwoven Inc.
Edited by akshat on 09/19/02 10:52 AM (server time).
fbuno
i need to job number to use iwgetwfobj in the workflow so i can have a report of each workflow before completion
akshathp
So where exactly are you planning to use this CLT? Is it going to be in some generic script? And, if that is the case, then why do you need the JobId inside your wft file? I believe you are trying to check the JobIds of all jobs and then generate report.
Akshat Pramod Sharma
Interwoven Inc.
Migrateduser
In an externaltask, the workflow id is the first argument passed in, $ARGV[0].
akshathp
Oh that's correct. For some reason I was thinking of the mail script.
Akshat Pramod Sharma
Interwoven Inc.
james1
So I assume that you are going to have an externaltask at the end of your workflow, and that externaltask is going to run a program that invokes iwgetwfobj.
If that is the case, then you do not need the job ID in your WFT. The workflow engine will provide the job ID on the command line of the externaltask program.