return BusinessProcess.instance().resumeTask(taskId);
}
else if ( method.isAnnotationPresent(ResumeProcess.class) )
{
log.trace( "encountered @ResumeProcess" );
ResumeProcess tag = method.getAnnotation(ResumeProcess.class);
if ( tag.processKey().equals("") )
{
Long processId = getProcessOrTaskId( tag.processIdParameter(), tag.processId() );
return BusinessProcess.instance().resumeProcess(processId);
}
else
{
return BusinessProcess.instance().resumeProcess( tag.definition(), getProcessKey( tag.processKey() ) );
}
}
if ( method.isAnnotationPresent(EndTask.class) )
{
log.trace( "encountered @EndTask" );