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)
How to Files Attached to a job in workflow modeler
anjani
Hi,
My requirement is to validate the following before passing the dcr in w/f :-
1) Is any dcr attached to the w/f ? If not stop the w/f?
2) How many dcr are attached to the w/f.If more than one dcr is attached then job can not be instantiated and a msg shd be displayed to the user.
3)Is the dcr already attached to the workflow.If yes don't instantiate the job
4) Is the user has permission to create the job for the workflow.
In the wft we can easliy find the number of ifles attached to the w/f , is any dcr attached or not etc but how we can find these information ithe workflow modeler? DO we have any way to validate these information before starting the job?
One way i can thought is to write a script ( which will be a external task and the first task of the job) using TeamSite Per modules and validate these information but as the job is already started , it's not a good way.
Another approach i can think of is to validate these information in the workflow instantiation form.But there i don't know how to find the number of attached files with the job, is any file attach to the w/f etc.
Could any body please tell me how to proceed .
Thanks in advance.
A.S.
Find more posts tagged with
Comments
mstradling
If your using TeamSite 6.7.1 SP1 take a look at WFM PreProcessor and PostProcessor commands (wfm_1001_user_v01_en.pdf - Chapter 9, page 157).
This lets you write a custom Java class that implements the InProcessJavaCommand interface and runs either before the WF instansiation form is displayed (PreProcessor) or after it's submitted (PostProcessor).
The example in the WFM user guide actually shows you how to attach a file to a worklfow so should give you a good starting point.