Petals SE Activiti

Error "The just created process instance 'x' is not found for the process definition 'xxxxxxxx:y:z'"

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.5.0
  • Fix Version/s: 0.9.0
  • Component/s: Process service
  • Security Level: Public
  • Description:
    Hide

    The following error occurs when invoking a service creating a process instance:

    org.ow2.petals.activitibpmn.incoming.operation.exception.OperationProcessingException: An error occurs processing the operation 'xxxxxxxxxx': The just created process instance 'y' is not found for the process definition 'zzzzzzzzzzzz:t:v'.
    	at org.ow2.petals.activitibpmn.incoming.operation.StartEventOperation.doExecute(StartEventOperation.java:137)
    	at org.ow2.petals.activitibpmn.incoming.operation.ActivitiOperation.execute(ActivitiOperation.java:280)
    	at org.ow2.petals.activitibpmn.incoming.ActivitiJBIListener.onJBIMessage(ActivitiJBIListener.java:118)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:759)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:490)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:339)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:256)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:745)
    2015/05/26 14:54:32,410 GMT+0200 FINE [org.ow2.petals.component.framework.componentUnderTestWithDefaultConfiguration] : End ActivitiJBIListener.onJBIMessage()

    This error occurs when the process definition does not include user task.

    Show
    The following error occurs when invoking a service creating a process instance:
    org.ow2.petals.activitibpmn.incoming.operation.exception.OperationProcessingException: An error occurs processing the operation 'xxxxxxxxxx': The just created process instance 'y' is not found for the process definition 'zzzzzzzzzzzz:t:v'.
    	at org.ow2.petals.activitibpmn.incoming.operation.StartEventOperation.doExecute(StartEventOperation.java:137)
    	at org.ow2.petals.activitibpmn.incoming.operation.ActivitiOperation.execute(ActivitiOperation.java:280)
    	at org.ow2.petals.activitibpmn.incoming.ActivitiJBIListener.onJBIMessage(ActivitiJBIListener.java:118)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:759)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:490)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:339)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:256)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:745)
    2015/05/26 14:54:32,410 GMT+0200 FINE [org.ow2.petals.component.framework.componentUnderTestWithDefaultConfiguration] : End ActivitiJBIListener.onJBIMessage()
    This error occurs when the process definition does not include user task.
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 26 May 2015 - 15:28:44 +0200

On such a process definition (without user task), all data are flushed in the database at the end of the Activiti processing. And as the process is completed at the end of the Activiti processing, the process instance is archived. To generate the reply of the service creating the process instance, the Petals SE Activiti try to retrieve the process instance using a query about process instance. Archived process instance should be also taken into account to cover the use case of a process definitions without user tasks.

Show
Christophe DENEUX added a comment - Tue, 26 May 2015 - 15:28:44 +0200 On such a process definition (without user task), all data are flushed in the database at the end of the Activiti processing. And as the process is completed at the end of the Activiti processing, the process instance is archived. To generate the reply of the service creating the process instance, the Petals SE Activiti try to retrieve the process instance using a query about process instance. Archived process instance should be also taken into account to cover the use case of a process definitions without user tasks.
Hide
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:38:57 +0200

Fixed in branch PETALSSEACTIVITI-4. To merge in branch petals-4.3.x and master.

Show
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:38:57 +0200 Fixed in branch PETALSSEACTIVITI-4. To merge in branch petals-4.3.x and master.
Hide
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:40:45 +0200 - edited

Fixed in petals-4.3.x.

Show
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:40:45 +0200 - edited Fixed in petals-4.3.x.
Hide
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:56:55 +0200

Merged in master

Show
Christophe DENEUX added a comment - Mon, 8 Jun 2015 - 11:56:55 +0200 Merged in master

People

Dates

  • Created:
    Tue, 26 May 2015 - 15:20:36 +0200
    Updated:
    Fri, 5 Aug 2016 - 12:02:52 +0200
    Resolved:
    Mon, 8 Jun 2015 - 11:40:45 +0200