How can we create task through code ?

1
0
-1

Hi All,

I want to create task through java code so can anybody help with this problem ?

Thanks Akhilesh

Comments

Submitted by ttoine on Wed, 04/23/2014 - 13:31

Hello, could you please give us some details about the kind of task you would like to create, and why you need to do it with java ? E.G: are you trying to create a process with another tool than Bonita Studio ?

Submitted by akhilesh.pathak on Wed, 04/23/2014 - 13:38

Hi

Thanks for your response.

Use Case 1. Test Manager assigns same task to multiple technician (I have created multi-instance task). 2. But task needs to be done in certain order. 3. So let suppose Test Manager assigns task to 3 technicians. 4. Each of the three technicians has to perform the task in order tech1,tech2,tech3 5. tech2 and tech3 will start working on their task once tech1 has completed the task.

once tech1 completes his task and submits the form i want to assign same task to tech2.

So i wanted to know is their a way so that i can create instance of the task and assign it to some technician ?

Thanks Akhilesh

Submitted by ttoine on Wed, 04/23/2014 - 14:12

you can use multi instanciated tasks for that in Bonita BPM, and actor filters to assign tasks to the good technician. I think there are different ways to design your process (with or without sub process, etc.), but I am not skilled enough to provide you with details.

1 answer

1
0
-1

Hi,

I think that the best is not using a multiinstance task in your case but you rather use 3 call activities . These call activities will point to a process containing a single task which will use a different actor (or actor filter) on each of them using a variable transmitted from parent process.

regards,

Notifications