org.jbpm.job.SignalTokenJob Maven / Gradle / Ivy
The newest version!
package org.jbpm.job;
import org.jbpm.JbpmContext;
import org.jbpm.graph.exe.Token;
/**
* Signals a token asynchronously.
*
* @see JBPM-2948
* @author Brad Davis
*/
public class SignalTokenJob extends Job {
private static final long serialVersionUID = 1L;
public SignalTokenJob() {
// default constructor
}
public SignalTokenJob(Token token) {
super(token);
}
public boolean execute(JbpmContext jbpmContext) throws Exception {
getToken().signal();
return true;
}
public String toString() {
return "SignalTokenJob(" + getId() + ',' + getToken() + ')';
}
}