Workflow Soluiton

 View Only
  • 1.  How to create subtasks from a task in Workflow

    Posted Aug 30, 2012 07:37 PM

    I want to have an additional response in a workflow task that allows the user to add additional task(s).

    Does anyone have an example flow for acheiving this?

    I have tried looping the response back to the same Dialog Workflow component with different assignments etc but it replaces the original task instead of adding an additional task.



  • 2.  RE: How to create subtasks from a task in Workflow

    Posted Aug 31, 2012 03:44 AM

    I think it cannot be done in the way you described.

    Task cannot be created inside the Dialog Workflow for the same instance - you cannot place one DW component inside another. When you use a response in the task you leaving this task and then flow can start onother Dialog Workflow on top level model to create new task. But the task you just left is automatically closed.

    If you want to create additional task without leaving current task the only way which comes on my mind is to make an slave process called as webservice from DialogWorkflow of the master proces.



  • 3.  RE: How to create subtasks from a task in Workflow

    Posted Sep 05, 2012 09:15 PM

    Thanks AnaMan.

    I am now trying to use a slave process that I call through a web service but I stuck at trying to associate (or include) a new task with the exisiting process. It currently creates a new process even though I used save to other processes and associated it with the workflow tracking id.

    Any thoughts?



  • 4.  RE: How to create subtasks from a task in Workflow

    Posted Sep 05, 2012 11:58 PM

    If I understand this correctly, you are trying to have the same dialog WF component execute with different assignemnts etc...

    http://www.screencast.com/t/tzClKVBC

    This is from Workflow Swat, and it shows a multiple approval/parallel approval process, using a For Each loop, and a double branching (you need to add the demo components and the Advanced WF dll to accomplish this.

    I believe this is what you are trying to accomplish?

     

    rob

     



  • 5.  RE: How to create subtasks from a task in Workflow

    Posted Sep 06, 2012 10:35 AM

    I'm not positive if you are looking for multiple task assignments or the ability to have multiple tasks.

    If you are looking for multiple responses or "tasks" in one Dialog model, you can click the "Allow Multiple Responses" checkbox in the Interaction Setup tab of the Dialog Workflow and then click Add in the Dialog Models section to add additional tasks.

    When you edit those additional Dialog models, you can uncheck the "Exit Component On End" checkbox to keep the task active if it might need to be repeated. Each of the Dialog Models added can have their own dialog model setup, independent of the main Dialog Model for the Dialog Workflow. The following image is an example of how I have one setup:

     

    Doing this introduces new ResponsePageLink and ResponsePageURL variables you can expose for your different task links. The following image shows how I expose those separate task links inside of an Altiris Helpdesk 6.x ticket comment:

     

    Hope that helps with what you are trying to do. If you're looking at doing multiple task assignments, what Rob pointed out on the previous post is the way to go.