cancel
Showing results for 
Search instead for 
Did you mean: 

Manually moving the token

stbill79
Champ in-the-making
Champ in-the-making
I'm trying to manually import an old application an updated version using Activiti.

I have log files with which I'm able to essentially recreate the various movements from state to state. However, there are pieces missing and I cannot just run simulate the instance (updating timestamps in the history) using the standard API. Some of the transitional states are missing, so I need to just skip them and make direct jumps.

Are there unit tests somewhere that show how I can move the execution / token directly?

The only alternative I see is to create another version of the BPMN and ignore a lot of the conditionals - essentially creating transitions that go from all states to all others.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

There is a way how to move the token to the activity (it was already discussed on the forum some time ago - create your own command to change activityId in the execution). The problem is that you have to really know what you are doing because executions can be splitted/merged……

Regards
Martin