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]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user