[jboss-user] [jBPM] - Re: How to set a process variable from java code ?

Ouadi BEL do-not-reply at jboss.com
Wed Mar 27 07:42:35 EDT 2013


Ouadi BEL [https://community.jboss.org/people/ouadi_dev] created the discussion

"Re: How to set a process variable from java code ?"

To view the discussion, visit: https://community.jboss.org/message/805016#805016

--------------------------------------------------------------
Here is my compete taskmethod code : 

TaskClient client = null;
 
try {
      client = connectToTaskServer(TASK_SERVER_HOST_IP_ADD,
                                                  TASK_SERVER_PORT);
 
      BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
 
     Map<String, Object> taskVariables = new HashMap<String, Object>();
     // Currency validation accepted
 
     taskVariables.put("o_validationResult", true);
 
 
      client.completeWithResults(aTaskId, aOwnerId, taskVariables, responseHandler);
 
      responseHandler.waitTillDone(2000);
  
      client.disconnect();
 
 
} catch (Exception e) {
    try {
          client.disconnect();
    } catch (Exception e1) {
         e1.printStackTrace();
    }
      e.printStackTrace();
      logger.error("Unable to completing the Task '" + aTaskId
                         + "' assigned to user '" + aOwnerId + "' : " + e.toString());
      throw new TaskManagerException("Unable to completing the Task '"
                         + aTaskId + "' assigned to user '" + aOwnerId + "' : "
                         + e.toString(), e);
}


After hard searching in the net, I'm not able to detect where this exception triggered !

Here is exception javadoc :

 http://docs.oracle.com/javase/6/docs/api/java/io/OptionalDataException.html http://docs.oracle.com/javase/6/docs/api/java/io/OptionalDataException.html

Thanks in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/805016#805016]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130327/eb9073ec/attachment-0001.html 


More information about the jboss-user mailing list