Hi All,
I'm going to develop some unit tests using Activiti.
All of the unit tests I've seen so far make the process to start from the beginning.
Unfortunately, a process is often made up of several activities and gateways and I'd like to create a unit test which verifies the correct behavior of a single step of the workflow. So, is it possible to set the state of a process to an arbitrary value without completing the preceding tasks?
For example, consider a process which contains three user tasks (Start–>A–>B–>C–>END) and an unit-test which must verify only the correctness of the transition from user task B to C. Is it possible to create a process instance which has B as current activity and an a certain set of execution variables? I don't want to call "complete" on task A , of course.
Thanks in advance.
Claudio