2 Replies Latest reply on Jun 25, 2014 5:18 AM by Laura delli Paoli

    Jbpm Executors with parameters and results in the process scope

    Laura delli Paoli Master

      Hello,

      I'm trying to use jbpm executors with prosess variables.

      my Async task is:

       

       

      [

          "name" : "async",

          "parameters" : [

               "CommandClass" : new StringDataType()

          ],

          "results" : [

              "RunTaskExitValue" : new IntegerDataType()

          ],

          "displayName" : "async",

          "icon" : "defaultservicenodeicon.png"

        ]

       

       

      After command has been executed I try to print RunTaskExitValue, but I get this error:

      java.lang.String cannot be cast to java.lang.Integer.

      I've not tryed parameter reading yet.

        • 1. Re: Jbpm Executors with parameters and results in the process scope
          Maciej Swiderski Master

          could you attach complete stack trace for this error to see what is throwing CCE?

           

          It might be that you have some data incompatibilities either on process variable level or in the command itself. Actually keeping the work item definition for async handler as generic as possible (so it can be reused) and then use data output assignments is the recommended way to work with async handler. See default wid for it here.

           

          HTH

          • 2. Re: Jbpm Executors with parameters and results in the process scope
            Laura delli Paoli Master

            Hi,

            this is complete trace:

             

             

            09:57:13,612 INFO  [test.jbpm.wiHandlers.LogTaskHandler] (http-10.21.30.73-10.21.30.73-8080-3) this is LogTaskHandler for process 280

            09:57:15,787 INFO  [test.jbpm.commands.CommandLineCommand] (pool-20-thread-1) I'm doing stuffs

            09:57:15,814 WARN  [org.drools.persistence.SingleSessionCommandService] (pool-20-thread-1) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:188) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:48) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:286) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:265) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:275) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:313) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:399) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:134) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:527) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:375) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:147) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.wih.AsyncWorkItemHandlerCmdCallback.onCommandDone(AsyncWorkItemHandlerCmdCallback.java:61) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.ExecutorRunnable.run(ExecutorRunnable.java:113) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

            Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

                    at test.jbpm.Process_test$jbpm$u46$empty691617326Action2Invoker.execute(Process_test$jbpm$u46$empty691617326Action2Invoker.java:12)

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:182) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    ... 30 more

             

             

             

             

            09:57:16,157 WARN  [org.jbpm.executor.impl.ExecutorRunnable] (pool-20-thread-1) Error during command test.jbpm.commands.CommandLineCommand execution [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

            09:57:18,787 INFO  [test.jbpm.commands.CommandLineCommand] (pool-20-thread-1) I'm doing stuffs

            09:57:18,808 WARN  [org.drools.persistence.SingleSessionCommandService] (pool-20-thread-1) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:188) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:48) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:286) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:265) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:275) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:313) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:399) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:134) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:527) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:375) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:147) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.wih.AsyncWorkItemHandlerCmdCallback.onCommandDone(AsyncWorkItemHandlerCmdCallback.java:61) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.ExecutorRunnable.run(ExecutorRunnable.java:113) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

            Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

                    at test.jbpm.Process_test$jbpm$u46$empty691617326Action2Invoker.execute(Process_test$jbpm$u46$empty691617326Action2Invoker.java:12)

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:182) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    ... 30 more

             

             

             

             

            09:57:19,065 WARN  [org.jbpm.executor.impl.ExecutorRunnable] (pool-20-thread-1) Error during command test.jbpm.commands.CommandLineCommand execution [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

            09:57:21,792 INFO  [test.jbpm.commands.CommandLineCommand] (pool-20-thread-1) I'm doing stuffs

            09:57:21,826 WARN  [org.drools.persistence.SingleSessionCommandService] (pool-20-thread-1) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:188) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:48) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:286) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:265) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:275) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:313) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:399) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:134) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:527) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:375) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:147) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.wih.AsyncWorkItemHandlerCmdCallback.onCommandDone(AsyncWorkItemHandlerCmdCallback.java:61) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.ExecutorRunnable.run(ExecutorRunnable.java:113) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

            Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

                    at test.jbpm.Process_test$jbpm$u46$empty691617326Action2Invoker.execute(Process_test$jbpm$u46$empty691617326Action2Invoker.java:12)

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:182) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    ... 30 more

             

             

             

             

            09:57:22,094 WARN  [org.jbpm.executor.impl.ExecutorRunnable] (pool-20-thread-1) Error during command test.jbpm.commands.CommandLineCommand execution [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

            09:57:24,795 INFO  [test.jbpm.commands.CommandLineCommand] (pool-20-thread-1) I'm doing stuffs

            09:57:24,830 WARN  [org.drools.persistence.SingleSessionCommandService] (pool-20-thread-1) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:188) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:48) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:286) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:265) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:275) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:337) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:313) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:399) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:134) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:527) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:375) [drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]

                    at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:147) [drools-core-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.wih.AsyncWorkItemHandlerCmdCallback.onCommandDone(AsyncWorkItemHandlerCmdCallback.java:61) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at org.jbpm.executor.impl.ExecutorRunnable.run(ExecutorRunnable.java:113) [jbpm-executor-6.0.1.Final.jar:6.0.1.Final]

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_35]

                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

            Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

                    at test.jbpm.Process_test$jbpm$u46$empty691617326Action2Invoker.execute(Process_test$jbpm$u46$empty691617326Action2Invoker.java:12)

                    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:182) [jbpm-flow-6.0.1.Final.jar:6.0.1.Final]

                    ... 30 more

             

             

             

             

            09:57:25,127 WARN  [org.jbpm.executor.impl.ExecutorRunnable] (pool-20-thread-1) Error during command test.jbpm.commands.CommandLineCommand execution [test.jbpm.empty:280 - :8] -- java.lang.String cannot be cast to java.lang.Integer