Cannot Interact with Processes after redeployment

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2016 08:18 AM
Hello,
i am currently working on a new process, which means i tend to redeploy the Application to our Applicationserver quite often.
my process basically is:
| START_EVT | –> | SERVICE_TASK: prefill some data | —> | USER_TASK: Enter more data | —> | WORK | —> | END_EVT |
In addition there is a Boundary message event attached to the USER_TASK, waiting got the message "msg_cancel", which leads the execution to an alternative Workflow (cleanup database + end_evt)
This works fine:
I deploy the application.
checking:
This however stops working once i do the following steps:
1) I start some processes
2) i change some code, not the bpmn mind you.
3) i deploy the application
NOW i can access Processvariables via the taskservice (i can load form-data from usertask), but i cannot commence any actions that would continue execution.
If i query for messageEventSubscriptions on "msg_cancel" i do not get the two Processes (A1, A2) listed anymore.
I assume this has to do with the redeployment and ProcessDefinition revisions?
Is this meant to be this way?
Regards
BillDoor
i am currently working on a new process, which means i tend to redeploy the Application to our Applicationserver quite often.
my process basically is:
| START_EVT | –> | SERVICE_TASK: prefill some data | —> | USER_TASK: Enter more data | —> | WORK | —> | END_EVT |
In addition there is a Boundary message event attached to the USER_TASK, waiting got the message "msg_cancel", which leads the execution to an alternative Workflow (cleanup database + end_evt)
This works fine:
I deploy the application.
ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 1 //(perfect)engine.getRuntimeService().createExecutionquery().businesskey("A1").singleResult;Execution execution = engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).messageEventSubscriptionName("msg_cancel");Map<String,Object> params = new HashMap<>();engine.getRuntimeService().messageEventReceived("msg_cancel", execution.getId(), params);
checking:
//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 0// (perfect)
This however stops working once i do the following steps:
1) I start some processes
ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A2");
2) i change some code, not the bpmn mind you.
3) i deploy the application
NOW i can access Processvariables via the taskservice (i can load form-data from usertask), but i cannot commence any actions that would continue execution.
If i query for messageEventSubscriptions on "msg_cancel" i do not get the two Processes (A1, A2) listed anymore.
I assume this has to do with the redeployment and ProcessDefinition revisions?
Is this meant to be this way?
Regards
BillDoor
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2016 10:42 AM
This is a bug in the recent versions of Activiti. On redeploy, the message events are deleted.
We plan to release a new version this week/next week at latest.
We plan to release a new version this week/next week at latest.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2016 04:28 AM
Thank you!
