Hello All,
The called process has a Long variable process which is used to load a BDM object. This process works perfectly with any number, given there is a corresponding entry in the table.
Now, when the caller sets this variable to an Id we now exists, we get the following error:
2017-07-31 11:38:44.043 -0400 SEVERE: org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork THREAD_ID=151 | HOSTNAME=cesar-notebook | TENANT_ID=1 | org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException : “PROCESS_DEFINITION_ID=9180849936950979872 | PROCESS_NAME=Recepción Factura Proveedor | PROCESS_VERSION=1.1 | PROCESS_INSTANCE_ID=28001 | ROOT_PROCESS_INSTANCE_ID=28001 | FLOW_NODE_DEFINITION_ID=6685483459158934841 | FLOW_NODE_INSTANCE_ID=560006 | FLOW_NODE_NAME=Llamada al recepción de certificados | org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.operation.SEntityActionExecutionException: java.lang.Long is not a valid type. Expected an Entity or a List”
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException: PROCESS_DEFINITION_ID=9180849936950979872 | PROCESS_NAME=Recepción Factura Proveedor | PROCESS_VERSION=1.1 | PROCESS_INSTANCE_ID=28001 | ROOT_PROCESS_INSTANCE_ID=28001 | FLOW_NODE_DEFINITION_ID=6685483459158934841 | FLOW_NODE_INSTANCE_ID=560006 | FLOW_NODE_NAME=Llamada al recepción de certificados | org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.operation.SEntityActionExecutionException: java.lang.Long is not a valid type. Expected an Entity or a List
at org.bonitasoft.engine.execution.StateBehaviors.handleCallActivity(StateBehaviors.java:419)
at org.bonitasoft.engine.execution.state.InitializingActivityWithBoundaryEventsStateImpl.afterConnectors(InitializingActivityWithBoundaryEventsStateImpl.java:98)
at org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState.execute(OnEnterOrOnFinishConnectorState.java:65)
at org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState.execute(OnEnterOrOnFinishConnectorState.java:34)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeState(FlowNodeExecutorImpl.java:123)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.updateState(FlowNodeExecutorImpl.java:174)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.stepForward(FlowNodeExecutorImpl.java:158)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeFlowNode(FlowNodeExecutorImpl.java:331)
at org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork.work(ExecuteFlowNodeWork.java:85)
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48)
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:44)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)
at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53)
at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:79)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.operation.SEntityActionExecutionException: java.lang.Long is not a valid type. Expected an Entity or a List
at org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:837)
at org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:792)
at org.bonitasoft.engine.execution.StateBehaviors.instantiateProcess(StateBehaviors.java:447)
at org.bonitasoft.engine.execution.StateBehaviors.handleCallActivity(StateBehaviors.java:408)
… 21 more
Caused by: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.operation.SEntityActionExecutionException: java.lang.Long is not a valid type. Expected an Entity or a List
at org.bonitasoft.engine.operation.BusinessDataAssignmentStrategy.computeNewValueForLeftOperand(BusinessDataAssignmentStrategy.java:47)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.calculateRightOperandValue(OperationServiceImpl.java:122)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:105)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:94)
at org.bonitasoft.engine.execution.ProcessExecutorImpl.executeOperations(ProcessExecutorImpl.java:365)
at org.bonitasoft.engine.execution.ProcessExecutorImpl.initialize(ProcessExecutorImpl.java:395)
at org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:822)
… 24 more
Caused by: org.bonitasoft.engine.operation.SEntityActionExecutionException: java.lang.Long is not a valid type. Expected an Entity or a List
at org.bonitasoft.engine.operation.EntitiesActionsExecutor.executeAction(EntitiesActionsExecutor.java:47)
at org.bonitasoft.engine.operation.BusinessDataAssignmentStrategy.computeNewValueForLeftOperand(BusinessDataAssignmentStrategy.java:45)
… 30 more
Both processes are in the same diagram, and we are using the community version.
Best regards,