Create multiple Task Instance from one Task Instance
We have a process, where user can request for multiple resources(access) in one single request.Currently user has to wait until all the resource requests are approved by application owners to start the provisioning process.
I am thinking of splitting that one request(task) into multiple task, based on the number of resources requested.so that, if one resource request is approved user can get that particular access.
My question :
1.How will I split the one task into multiple task and pass the required information to child task?
2.How do I handle views?Currently since its one task , we checkout and check-in the same view.
3.How will I overcome the possibility of one view overwritten by the other.
Thanks.
[755 byte] By [
kaithsa] at [2007-11-27 1:22:34]

# 1
> We have a process, where user can request for
> multiple resources(access) in one single
> request.Currently user has to wait until all the
> resource requests are approved by application owners
> to start the provisioning process.
>
> I am thinking of splitting that one request(task)
> into multiple task, based on the number of resources
> requested.so that, if one resource request is
> approved user can get that particular access.
>
> My question :
> 1.How will I split the one task into multiple task
> and pass the required information to child task?
> 2.How do I handle views?Currently since its one task
> , we checkout and check-in the same view.
> 3.How will I overcome the possibility of one view
> overwritten by the other.
>
> Thanks.
Hi,
yes u can split one task into multiple task means as ur requirment diffrent task for different resource. so u have to write diffrent W/F for each resource and call them by setting a counter for number of resource.
the below code help u.
<Variable name='index'>
<i>0</i>
</Variable>
<Activity id='1' name='createNewTask'>
<Action id='0' name='createView' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='createView'/>
<Argument name='type' value='Process'/>
<Argument name='viewId' value='Process'/>
<Argument name='taskName'>
<s>give any name to the task</s>
</Argument>
<Argument name='process'>
<s>task name that u want to launch</s><!-- u can get task name dynamicly by rule also by passing resource name -->
</Argument>
<Argument name='accountId' value='$(accountId)'/><!-- pass the required information to child task as argument -->
</Action>
<Action id='1' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view'>
<ref>view</ref>
</Argument>
</Action>
<Action id='2'>
<set name='view'>
<null/>
</set>
</Action>
<Transition to='incrementIndex'/>
</Activity>
<Activity id='2' name='incrementIndex'>
<Action id='0'>
<set name='index'>
<add>
<ref>index</ref>
<i>1</i>
</add>
</set>
</Action>
<Transition to='createNewTask'>
<lt>
<ref>index</ref>
<ref>length</ref><!-- number of resource-->
</lt>
</Transition>
<Transition to='end'/>
</Activity>
# 2
Thanks a lot for the reply.
Here is what I tried.
I would expect to see 3 tasks in the "ALL Task" tab with the name GBBB New request 1,GBBB New request 2,GBBB New request 3.
But the program executed thrice but came up just with 3 hello worlds.
Hello World !!!!!!!!!!!!!!!!
Hello World !!!!!!!!!!!!!!!!
Hello World !!!!!!!!!!!!!!!!
Create view doesn't seems to work for me.What am I missing?
Note: I am using IDM 5.5.Not the latest.Would that make a difference?
<Activity id='0' name='start'>
<Action id='0'>
<expression>
<block>
<set name='index'>
<i>0</i>
</set>
<set name='length'>
<i>3</i>
</set>
</block>
</expression>
</Action>
<Transition to='Start Dumping'/>
<WorkflowEditor x='88' y='34'/>
</Activity>
<Activity id='1' name='Start Dumping'>
<Action id='0'>
<expression>
<block>
<set name='newtaskName'>
<concat>
<s>GBBB New request </s>
<ref>index</ref>
</concat>
</set>
</block>
</expression>
<ActionResult type='message' value='Hello World !!!!!!!!!!!!!!!!'>
</ActionResult>
</Action>
<Action id='1' name='createView' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='createView'/>
<Argument name='type' value='Process'/>
<Argument name='viewId' value='Process'/>
<Argument name='taskName'>
<ref>newtaskName</ref>
</Argument>
<Argument name='process' value='GBBB'/> <s>this is the program I wanted to call</s>
<Argument name='accountId' value='dbgcm2'/>
<Return from='view' to='userview'/>
</Action>
<Action id='2' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view'>
<ref>userview</ref>
</Argument>
</Action>
<Action id='3'>
<expression>
<set name='view'>
<null/>
</set>
</expression>
</Action>
<Transition to='incrementIndex'/>
<WorkflowEditor x='88' y='157'/>
</Activity>
<Activity id='2' name='end'>
<WorkflowEditor x='235' y='344'/>
</Activity>
<Activity id='3' name='incrementIndex'>
<Action id='0'>
<expression>
<set name='index'>
<add>
<ref>index</ref>
<i>1</i>
</add>
</set>
</expression>
</Action>
<Transition to='Start Dumping'>
<lt>
<ref>index</ref>
<ref>length</ref>
</lt>
</Transition>
<Transition to='end'/>
Any sort of Advice is greatly appreciated.
Thanks.