10 Replies Latest reply on Jul 9, 2012 12:36 PM by Maciej Swiderski

    Cannot retrieve a result from human task in jBPM 5.3

    Jiri Svitak Novice

      Hello,

      I was unable to get working human tasks in jBPM 5.3, particularly retrieving a result from human task form to a process variable. At first I suffered the same problem as here:

      https://community.jboss.org/thread/200849

       

      The fix for that was applied only to master branch, so I switched from 5.3.0-SNAPSHOT to 5.4.0-SNAPSHOT in the pom file of my project.

      However now I experience a new error in the server log (jBPM engine in my application hangs):

       

       

      18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) java.io.OptionalDataException
      18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1339)
      18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:77)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at java.lang.reflect.Method.invoke(Method.java:597)
      18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
      18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
      18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
      18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
      18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)     at java.lang.Thread.run(Thread.java:662)
      

       

      I have attached .bpmn2 file with my business process definition. I use HornetQHTWorkItemHandler.

       

      I was recommended (M.Salatino) to try using a map variable to retrieve a value from the form, but that doesn't help. In the generated form was only one field named the same as the map variable, not the String variable contained in the map. After filling the badly generated form I experienced the same exception as above and the engine hung.

        • 1. Re: Cannot retrieve a result from human task in jBPM 5.3
          Mauricio Salatino Master

          I've recommended that change from the API perspective, but there is probably a problem with the jBPM console. Do you have a simple test case where we can reproduce the error?

          • 2. Re: Cannot retrieve a result from human task in jBPM 5.3
            Maciej Swiderski Master

            What version of console - in particular jbpm-gwt-form - do you have? This type of error is was a know bug but it was already fixed on master.

             

            HTH

            • 3. Re: Cannot retrieve a result from human task in jBPM 5.3
              Jiri Svitak Novice

              Thanks for your help. I have used everything from 5.3.0.Final, so it seems that fix wasn't there yet.

               

              But now I am struggling with running 5.4.0-SNAPSHOT. I have built my own .war files from jbpm master sources, but I am unable to get them working. I am not familiar with internal jBPM structure, is there a manual where it is explained how to create something like jbpm-installer-full?

               

              In particular there was no file starting with jbpm-gwt-form in my jBPM 5.3.0 installation (jboss-as-7.0.2.Final/standalone/deployments). I have in my deployments directory just these files:

              designer.war

              drools-guvnor.war

              jbpm-form-builder.war

              jbpm-gwt-console.war

              jbpm-gwt-console-server.war

              jbpm-human-task-war.war

              So I am not sure about the 'jbpm-gwt-form' file, or which .war should I replace, or if I should replace them all. I have found just jbpm-gwt-form file just in jbpm-gwt/jbpm-gwt-form/target, but that's not a .war file to deploy, but just a .jar file.

               

              I am studying the build.xml file of my jBPM 5.3.0.Final installation and it would take me much time to get it working properly. I would have to configure a lot of things in .war files itself, copy and unzip several files, ensure correct versions etc. So just asking if there is a more comfortable and documented way of creating own installer structure for components compiled from master branch?

               

              I have also tried to use jbpm/jbpm-installer, which has empty lib directory. I have tried

              ant download.drools.guvnor

              but required file doesn't exist. So going this way would mean to search for files on Nexus, download them, configure jbpm-installer and the hope that these files will work. Still not sure which files I need. Is this the best way? I am a bit confused, so thanks for your help.

              • 4. Re: Cannot retrieve a result from human task in jBPM 5.3
                Maciej Swiderski Master

                the jbpm-gwt-form jar file is included in jbpm-gwt-console-server.war. So to build the installer from source you would need to run the build with following maven command:

                mvn clean install -DskipTests -Dfull

                 

                once it successfully completes coppy following libs from jbpm-distribution/target

                jbpm-VERSION-bin.zip

                jbpm-VERSION-gwt-console.zip

                jbpm-VERSION-human-task-war.zip

                 

                into jbpm-installer/lib

                 

                Once you have that you can run ant install.demo.noeclipse directly or put some already downladed artifacts into jbpm-sintaller/lib forlder such as jboss as7, birt package, designer, guvnor etc. For up  to date version number please check build.properties of the jbpm-installer.

                birt-runtime-3_7_0.zip

                designer-2.2.Final-jboss7.war

                guvnor-distribution-wars-VERSION.war

                jboss-as-7.0.2.Final.zip

                jbpm-VERSION-form-builder.war

                • 5. Re: Cannot retrieve a result from human task in jBPM 5.3
                  Jiri Svitak Novice

                  Hello Maciej,

                   

                  I have followed your steps and copied files to jbpm-installer/lib directory

                  jbpm-5.4.0-SNAPSHOT-bin.zip

                  jbpm-5.4.0-SNAPSHOT-gwt-console.zip

                  jbpm-5.4.0-SNAPSHOT-human-task-war.zip

                   

                  Also I have copied these files from elsewhere

                  birt-runtime-3_7_0.zip

                  designer-2.2.Final-jboss7.war

                  jboss-as-7.0.2.Final.zip

                   

                  Other files have been downloaded by Ant (I had to change manually in build.properties from guvnor-distribution-wars-5.4.0-20120503.212427-528-jboss-as-7.0.war

                  to guvnor-distribution-wars-5.4.0-20120708.112032-569-jboss-as-7.0.war, older one was not available on the Nexus):

                  guvnor-distribution-wars-5.4.0-SNAPSHOT.war

                  jbpm-5.4.0-SNAPSHOT-form-builder.war

                  jbpm-human-task-war-5.4.0-SNAPSHOT.war

                   

                  After running

                  ant install.demo.noeclipse

                  ant start.h2

                  ant start.jboss

                  I have not been able to visit drools-guvnor or jbpm-console, because deployment has failed (output from jbpm-form-builder.war.failed):

                   

                  {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"jbpm-form-builder.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-form-builder.war\".WeldService: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

                  Exception 0 :

                  java.lang.UnsupportedOperationException: Naming context is read-only

                      at org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:314)

                      at javax.naming.InitialContext.createSubcontext(InitialContext.java:464)

                      at com.sun.jersey.server.impl.cdi.CDIExtension$1.stepInto(CDIExtension.java:280)

                      at com.sun.jersey.server.impl.cdi.CDIExtension.diveIntoJNDIContext(CDIExtension.java:267)

                      at com.sun.jersey.server.impl.cdi.CDIExtension.createJerseyConfigJNDIContext(CDIExtension.java:273)

                      at com.sun.jersey.server.impl.cdi.CDIExtension.initialize(CDIExtension.java:192)

                      at com.sun.jersey.server.impl.cdi.CDIExtension.beforeBeanDiscovery(CDIExtension.java:297)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)

                      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)

                      at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:48)

                      at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:351)

                      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)

                      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                      at java.lang.Thread.run(Thread.java:662)

                  "}}}}



                  All other .failed files have contained just sentence "Composite operation was rolled back". I have also tried ant clean.demo.noeclipse and ant install.demo.noeclipse again, but

                  still without success. My guess is that form builder should be ok, since it's downloaded from Jenkins as its last successful build. Any help is welcome, thanks.

                  • 6. Re: Cannot retrieve a result from human task in jBPM 5.3
                    Maciej Swiderski Master

                    can you remove form builder from the deployments folder (or change the marked file for it to skipdeploy) and try to access jbpm-console. If it's not there please upload server.log file.

                     

                    HTH

                    • 7. Re: Cannot retrieve a result from human task in jBPM 5.3
                      Jiri Svitak Novice

                      Thanks, I have changed form builder .failed file to .skipdeploy and now it works - drools-guvnor and jbpm-console.

                       

                      However the old problem remains - I am still unable to retrieve a value from my human task. Instead of a String value it returns null and throws an exception:

                       

                      java.lang.NullPointerException
                           at org.jbpm.marshalling.impl.ProtobufProcessMarshaller.unmarshallVariableValue(ProtobufProcessMarshaller.java:270)
                           at org.jbpm.task.utils.ContentMarshallerHelper.unmarshall(ContentMarshallerHelper.java:112)
                           at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:230)
                           at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:209)
                           at java.lang.Thread.run(Thread.java:662)
                      

                       

                      So instead of receiving a String value filled in the human task form, I get a null value. At least something has improved - business process does not hang, but it finishes correctly.

                      • 8. Re: Cannot retrieve a result from human task in jBPM 5.3
                        Maciej Swiderski Master

                        could you post your process definition (bpmn2) here? So I could take a look if that is in fact missing configuration or a bug.

                         

                        Cheers

                        • 9. Re: Cannot retrieve a result from human task in jBPM 5.3
                          Jiri Svitak Novice

                          Here it is (value is a String process variable, data is a simple String output parameter of human task, that I want to receive from the form):

                           

                          <?xml version="1.0" encoding="UTF-8"?>

                          <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_GGnEYcnUEeGQnP-6F9PmRg" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" targetNamespace="http://www.omg.org/bpmn20">

                            <bpmn2:itemDefinition id="_valueItem" structureRef="String"/>

                            <bpmn2:itemDefinition id="__A83A6880-44B4-4169-AE8C-70CB94222934_dataOutputItem" structureRef="String"/>

                            <bpmn2:process id="org.jenkinsci.plugins.jbpm.human" drools:packageName="org.jenkinsci.plugins.jbpm" name="human" isExecutable="true">

                              <bpmn2:property id="value" itemSubjectRef="_valueItem"/>

                              <bpmn2:startEvent id="_559F6601-4833-4DDA-B758-8F9D6D7CD42E" drools:bgcolor="#9acd32" name="">

                                <bpmn2:outgoing>_8691570E-2431-4FA0-8432-8D641D628477</bpmn2:outgoing>

                              </bpmn2:startEvent>

                              <bpmn2:userTask id="_A83A6880-44B4-4169-AE8C-70CB94222934" drools:bgcolor="#fafad2" drools:taskName="Evaluation" drools:scriptFormat="http://www.java.com/java" name="Evaluation">

                                <bpmn2:incoming>_8691570E-2431-4FA0-8432-8D641D628477</bpmn2:incoming>

                                <bpmn2:outgoing>_04E356CA-786B-48CE-834D-EADB3BA4518C</bpmn2:outgoing>

                                <bpmn2:ioSpecification id="_GGnrcMnUEeGQnP-6F9PmRg">

                                  <bpmn2:dataInput id="_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput" name="TaskName"/>

                                  <bpmn2:dataInput id="_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput" name="Skippable"/>

                                  <bpmn2:dataOutput id="_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput" drools:dtype="String" itemSubjectRef="__A83A6880-44B4-4169-AE8C-70CB94222934_dataOutputItem" name="data"/>

                                  <bpmn2:inputSet id="_GGnrccnUEeGQnP-6F9PmRg">

                                    <bpmn2:dataInputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:dataInputRefs>

                                    <bpmn2:dataInputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:dataInputRefs>

                                  </bpmn2:inputSet>

                                  <bpmn2:outputSet id="_GGnrcsnUEeGQnP-6F9PmRg">

                                    <bpmn2:dataOutputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput</bpmn2:dataOutputRefs>

                                  </bpmn2:outputSet>

                                </bpmn2:ioSpecification>

                                <bpmn2:dataInputAssociation id="_GGoSgMnUEeGQnP-6F9PmRg">

                                  <bpmn2:targetRef>_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:targetRef>

                                  <bpmn2:assignment id="_GGoSgcnUEeGQnP-6F9PmRg">

                                    <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_GGoSgsnUEeGQnP-6F9PmRg">Evaluation</bpmn2:from>

                                    <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_GGoSg8nUEeGQnP-6F9PmRg">_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:to>

                                  </bpmn2:assignment>

                                </bpmn2:dataInputAssociation>

                                <bpmn2:dataInputAssociation id="_GGoShMnUEeGQnP-6F9PmRg">

                                  <bpmn2:targetRef>_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:targetRef>

                                  <bpmn2:assignment id="_GGoShcnUEeGQnP-6F9PmRg">

                                    <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_GGoShsnUEeGQnP-6F9PmRg">false</bpmn2:from>

                                    <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_GGoSh8nUEeGQnP-6F9PmRg">_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:to>

                                  </bpmn2:assignment>

                                </bpmn2:dataInputAssociation>

                                <bpmn2:dataOutputAssociation id="_GGoSiMnUEeGQnP-6F9PmRg">

                                  <bpmn2:sourceRef>_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput</bpmn2:sourceRef>

                                  <bpmn2:targetRef>value</bpmn2:targetRef>

                                </bpmn2:dataOutputAssociation>

                                <bpmn2:potentialOwner id="_GGoSicnUEeGQnP-6F9PmRg">

                                  <bpmn2:resourceAssignmentExpression id="_GGoSisnUEeGQnP-6F9PmRg">

                                    <bpmn2:formalExpression id="_GGoSi8nUEeGQnP-6F9PmRg">admin</bpmn2:formalExpression>

                                  </bpmn2:resourceAssignmentExpression>

                                </bpmn2:potentialOwner>

                              </bpmn2:userTask>

                              <bpmn2:sequenceFlow id="_8691570E-2431-4FA0-8432-8D641D628477" sourceRef="_559F6601-4833-4DDA-B758-8F9D6D7CD42E" targetRef="_A83A6880-44B4-4169-AE8C-70CB94222934"/>

                              <bpmn2:scriptTask id="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF" drools:bgcolor="#fafad2" name="print output" scriptFormat="http://www.java.com/java">

                                <bpmn2:incoming>_04E356CA-786B-48CE-834D-EADB3BA4518C</bpmn2:incoming>

                                <bpmn2:outgoing>_670A74F3-6677-4D74-870A-3904D6E7B5E5</bpmn2:outgoing>

                                <bpmn2:script><![CDATA[System.out.println("Value from the form: "+kcontext.getVariable("value"));]]></bpmn2:script>

                              </bpmn2:scriptTask>

                              <bpmn2:sequenceFlow id="_04E356CA-786B-48CE-834D-EADB3BA4518C" sourceRef="_A83A6880-44B4-4169-AE8C-70CB94222934" targetRef="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF"/>

                              <bpmn2:sequenceFlow id="_670A74F3-6677-4D74-870A-3904D6E7B5E5" sourceRef="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF" targetRef="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC"/>

                              <bpmn2:endEvent id="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC" drools:bgcolor="#ff6347" name="">

                                <bpmn2:incoming>_670A74F3-6677-4D74-870A-3904D6E7B5E5</bpmn2:incoming>

                                <bpmn2:terminateEventDefinition id="_GGoSjMnUEeGQnP-6F9PmRg"/>

                              </bpmn2:endEvent>

                            </bpmn2:process>

                            <bpmndi:BPMNDiagram id="_GGoSjcnUEeGQnP-6F9PmRg">

                              <bpmndi:BPMNPlane id="_GGoSjsnUEeGQnP-6F9PmRg" bpmnElement="org.jenkinsci.plugins.jbpm.human">

                                <bpmndi:BPMNShape id="_GGoSj8nUEeGQnP-6F9PmRg" bpmnElement="_559F6601-4833-4DDA-B758-8F9D6D7CD42E">

                                  <dc:Bounds height="30.0" width="30.0" x="210.0" y="105.0"/>

                                </bpmndi:BPMNShape>

                                <bpmndi:BPMNShape id="_GGoSkMnUEeGQnP-6F9PmRg" bpmnElement="_A83A6880-44B4-4169-AE8C-70CB94222934">

                                  <dc:Bounds height="80.0" width="100.0" x="300.0" y="80.0"/>

                                </bpmndi:BPMNShape>

                                <bpmndi:BPMNEdge id="_GGoSkcnUEeGQnP-6F9PmRg" bpmnElement="_8691570E-2431-4FA0-8432-8D641D628477">

                                  <di:waypoint xsi:type="dc:Point" x="225.0" y="120.0"/>

                                  <di:waypoint xsi:type="dc:Point" x="350.0" y="120.0"/>

                                </bpmndi:BPMNEdge>

                                <bpmndi:BPMNShape id="_GGoSksnUEeGQnP-6F9PmRg" bpmnElement="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF">

                                  <dc:Bounds height="80.0" width="100.0" x="445.0" y="80.0"/>

                                </bpmndi:BPMNShape>

                                <bpmndi:BPMNEdge id="_GGoSk8nUEeGQnP-6F9PmRg" bpmnElement="_04E356CA-786B-48CE-834D-EADB3BA4518C">

                                  <di:waypoint xsi:type="dc:Point" x="350.0" y="120.0"/>

                                  <di:waypoint xsi:type="dc:Point" x="495.0" y="120.0"/>

                                </bpmndi:BPMNEdge>

                                <bpmndi:BPMNEdge id="_GGoSlMnUEeGQnP-6F9PmRg" bpmnElement="_670A74F3-6677-4D74-870A-3904D6E7B5E5">

                                  <di:waypoint xsi:type="dc:Point" x="495.0" y="120.0"/>

                                  <di:waypoint xsi:type="dc:Point" x="600.0" y="116.0"/>

                                </bpmndi:BPMNEdge>

                                <bpmndi:BPMNShape id="_GGoSlcnUEeGQnP-6F9PmRg" bpmnElement="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC">

                                  <dc:Bounds height="28.0" width="28.0" x="586.0" y="102.0"/>

                                </bpmndi:BPMNShape>

                              </bpmndi:BPMNPlane>

                            </bpmndi:BPMNDiagram>

                          </bpmn2:definitions>

                          • 10. Re: Cannot retrieve a result from human task in jBPM 5.3
                            Maciej Swiderski Master

                            Gave it a try with both unit test and console approach and both worked fine. Please find attached test project with simple test case that illustrates that the value is set properly. Note that it requires 5.4.0-SNAPSHOT.

                             

                            HTH