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)
Workflow model validation
dolly1
Hi,
Here is a scenario to be handled using workflow model
On click on new job, i wanted a workflow model to get inititaed.
Before a job can start i need to check the following things:
1. If the user has selected a DCR before clicking of new job.
2. If the DCR is not already attached with a workflow.
These 2 tasks were pretty straight forward while using WFT, I am not sure what is the best way while we use workflow model.
Also after doing the above mentioned validations, i need to show a form to the user, ask him to validate some already filled in values (these values will come from the same DCR he has selected to pass through the workflow). If the user does some changes these need to be saved in the DCR back again. Ideally in my case these things should happen before the job starts.
What solution I can think of is:
Workflow model provides a feature of invoking a DCT when the workflow model is selected to start.
On load of this DCT, in Java script, call an ipl file, pass the DCR path to it and check if the DCR is not already in some workflow.
Also once these validations are successful, call an ipl or JAVA file, parse the selected DCR and assign these values to the global variable defined in the workflow model. Not sure if this funda is correct.
Now when the user changes some fields again read these values from the form, parse the DCR again and set the changed values in the DCR.
These are some initial thoughts, not sure if these are achievable. Please validate also please suggest any better approaches.
Any help will be much much appreciated.
Find more posts tagged with
Comments
moonkhanna
I have not tried the first scenario at my end so I would not be the right person to recommend on that.
Your second scenario "Also after doing the above mentioned validations, i need to show a form to the user, ask him to validate some already filled in values (these values will come from the same DCR he has selected to pass through the workflow). If the user does some changes these need to be saved in the DCR back again. Ideally in my case these things should happen before the job starts."
The above seems to me like not too good design but looks very much achievable.
dolly1
Hi,
Thanks for the reply.
I am still not sure how to achieve this, can anyone please help me. I have got the workflow model 1.0.0.1 installed now and I have got to know that we can use preprocess and postprocess command which can be JAVA classes as well.
I have checked that and added a JAVA class as a preprocess, but I am not sure how to check of this is getting called or not.
Also as per the scenario mentioned above, how do I end the workflow using modlerworkflowapi.
Also if the conditions mentioned in the preprocess java fails how can I stop the workflow to show the instiation DCT?
How do i get the DCR values (which i have selected to pass through the workflow) in my instantiation DCT?
Please help.