return step;
}
public String internalInvoke(final TaskWatch watch) {
ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
ProcessInstanceDAO dao = ctx.getProcessInstanceDAO();
ProcessInstance pi = dao.getProcessInstance(Long.parseLong(processInstanceId));
if (pi.getInternalId() == null) {
pi.setInternalId(context.getScopeInstance().getExecution().getProcessInstance().getId());
dao.saveProcessInstance(pi);
}
final ProcessToolProcessStep stepInstance = ctx.getRegistry().getStep(stepName);
if (stepInstance == null) {
throw new IllegalArgumentException("No step defined by name: " + stepName);