cancel
Showing results for 
Search instead for 
Did you mean: 

FormService.submitTaskFormData does not continue process

kaech
Champ in-the-making
Champ in-the-making
Hi,

I am implementing a Web Service wrapper around the Activiti services to connect clients via SOAP.

I have a simple process that includes one user task like this:

startEvent -> scriptTask(1) -> userTask -> scriptTask(2) -> endEvent

The user task comprises one formProperty to expose the process state to the clients.
The script tasks just dumps a message on the console so that I can see the progress.

When I complete the user task using Activiti Explorer the process is properly continued and all data is removed from the ACT_RU tables.

The Web Service is able to read task form properties via getTaskFormData. The problem appears when the Web Service submits the data back to the process. When I call FormService.submitTaskFormData or TaskService.complete in the Web Service the following happens:

1. The task dissapears from ACT_RU_TASK
2. The task variable (process data) does not dissapear from ACT_RU_VARIABLE
3. The process does not continue. ACT_RU_EXECUTION shows that scriptTask(2) is active.

So the process is stuck in script task 2. If I change the process so that the endEvent is executed directly after the user task it works as expected.
Do you have any idea why the process does not continue?
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
What actually happens in the script, does it require a lot of processing-time?