AnsweredAssumed Answered

workflow interaction between tasks

Question asked by gouthr on Oct 2, 2014
Latest reply on Oct 3, 2014 by martin.grofcik

I want to be able to run a sequence of tasks in a particular order and it has a specific set of requirements. Would I be able to perform the same using the Activiti engine? Here's the details of the sequence of steps:

Start -> Task1 -> Task2 ->End

Task1 and Task2 are service tasks which invoke a 'C' language binary. I need to be able to post some output from Task1 so that Task2 can take it as input. Can I setup a Activiti supported DB and write to it from Task1 and read the same from Task2? Or would there be any interface to manage the interactions between the 2 tasks using any Activiti engine related API's that use the default DB.

Both Task1 and Task2 are complex tasks which have their own 'job id' and associated set of input, output and other monitoring states.

I was thinking of using Event handlers to signal the completion of Task1 and begin the execution of Task2.

Now, the question is if my Task1 and Task2 are 'C' language binaries, how can I call the Activiti provided interfaces to write to the default DB from these binaries so that Activiti engine can manage the complete workflow.

Please let me know if my understanding is wrong or if I am missing something here. I am new to Activiti.