3 Replies Latest reply on Jun 12, 2008 2:20 AM by kukeltje

    Create Task WS (jbpm-bpel)

    cr3

      Hi there,

      Does any body know how to create a new task on a JBPM flow using the "Task" sample that comes when you download jbpm-bpel?

      I've already deployed the webservice on my JBoss server, and when I try to test it everything seems to go fine, but when I get back to the Jbpm Console and try to start the new task I got the next Error:

      Error loading task: An exception of type "java.lang.NullPointerException" was thrown.
      Error starting task: The task instance value is null


      My soap client has the following structure:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:task="http://jbpm.org/examples/task" xmlns:add="http://schemas.xmlsoap.org/ws/2004/08/addressing">
      <soapenv:Header/>
      <soapenv:Body>
      <task:createTask>

      <!--You may enter ANY elements at this point-->


      <add:Address>?</add:Address>
      <!--Optional:-->
      <add:ReferenceProperties>
      <!--You may enter ANY elements at this point-->
      </add:ReferenceProperties>
      <!--Optional:-->
      <add:ReferenceParameters>
      <!--You may enter ANY elements at this point-->
      </add:ReferenceParameters>
      <!--Optional:-->
      <add:PortType>?</add:PortType>
      <!--Optional:-->
      <add:ServiceName PortName="?">?</add:ServiceName>
      <!--You may enter ANY elements at this point-->

      </task:createTask>
      </soapenv:Body>
      </soapenv:Envelope>

      Where the "taskID" and the "tokenID" values are gotten from the data display on the jbpm-console (I mean from a process that is already started). I think that my fault comes from using values that are already used by the jbpm flow, but I can't figure it out from where should I got the "taskID" and "tokenID" values.

      I will really appreciatte your sugestions

      Christian