07-14-2011 09:46 AM
07-14-2011 12:21 PM
07-21-2011 05:29 AM
Hey there,
the exception you got means that you ignore the uniqueness of business keys. I guess you start all your process instances (you call them workflows) with one and the same business key. So give every new workflow an own business key or start the workflows without business key and everything is fine.
startProcessInstanceById(processDefinitionId, businessKey);
easier….
startProcessInstanceById(processDefinitionId);
Best regards,
Micha
07-21-2011 09:16 AM
07-21-2011 09:59 AM
07-21-2011 10:11 AM
public void execute(ActivityExecution execution) throws Exception {
try {
LOG.info("Starting email task.");
Map<String, Object> variables = new HashMap<String, Object>();
variables = execution.getVariables();
ConnectorBusinessData data = loadDataXml(variables.get("data"));
JavaxEmailFactory mailFactory = new JavaxEmailFactory();
mailFactory.createEmailService().sendEmail(data);
LOG.info("Email task was succesfully completed.");
}catch (Exception e) {
LOG.severe("There is a problem with EmailTask: "
+ e.getMessage());
execution.setVariable("exception", e.getMessage().getBytes());
throw XYException.wrap(e);
}
finally{
execution.end();
}
}
07-21-2011 12:19 PM
07-22-2011 06:55 AM
Hi,
Is there a specific reason why you are using the ActivityBehavior interface?
One of the things you have to take care of when using the ActivityBehavior interface is leaving the current task.
And then you should use execution.take(transition) method and certainly not execution.end().
,
07-25-2011 04:49 AM
07-25-2011 11:45 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.