cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Workflow

fjr_nj
Champ in-the-making
Champ in-the-making
Hi,
Could someone point me to a "dynamic" workflow example?  For example, user 1 is assigned to go through workflow A whereas user 2 is assigned to go through workflow B?  Could I programmatically check which step each user moves to next?  and have each workflow node assigned a URL?

Workflow A
Enter User Info (/userinfo.html) –> upload resume (/uploadresume) –>

Workflow B
Enter User Info (/userinfo.html) –> Enter Background information (getbackgroundInfo.html) –>upload resume (/uploadresume) –> etc.

Hope this makes sense…

Thanks!
fjr
3 REPLIES 3

vasile_dirla
Star Contributor
Star Contributor
Ho Fjr,
"Could I programmatically check which step each user moves to next?"
so you want to know which will be the next "user task" for a workflow before completing the current task?

fjr_nj
Champ in-the-making
Champ in-the-making
Thank you for your reply.

No, not before, after the task is complete.  I'm hoping to assign a url to the "next" user task and (once the current task is complete) redirect the user to that page where the next task's information can be capture, etc.

Thanks in advance!

windforce
Champ in-the-making
Champ in-the-making
1.deploy  process definition      —–Deployment deployment = repositoryService.createDeployment().addBytes(fileName, bytes).deploy();
2.implement your own ProcessParseCmd  
     —–public class ProcessParseCmd implements Command(List(ProcessDefinition)) ;
3. parse  usertask FlowElement(also you can parse startevent/ endevent node ),  insert  necessary information into your own  taskdef table;
    at the same time, when your parse every usertask node,  pasre  its  every  OutgoingFlows into your own nexttaskdef table; —- in step 2
4.your can also add informations(varibale , listener,transit……..) what you wanted  into those two tables;
5.then you will find  it is very easy to realize your mind.  even you can dynamicly change flow directions configed in your process definition.