/** * force unlocking the token, even if the owner is not known. In some use cases (e.g. in the * jbpm esb integration) the lock is persistent, so a state can be reached where the client * needs a possibility to force unlock of a token without knowing the owner. * * @see <a href="https://jira.jboss.org/jira/browse/JBPM-1888">JBPM-1888</a> * @deprecated Use {@link #forceUnlock()} instead */ public void foreUnlock() { forceUnlock(); }
/** * force unlocking the token, even if the owner is not known. In some use cases (e.g. in the * jbpm esb integration) the lock is persistent, so a state can be reached where the client * needs a possibility to force unlock of a token without knowing the owner. * * @see <a href="https://jira.jboss.org/jira/browse/JBPM-1888">JBPM-1888</a> * @deprecated Use {@link #forceUnlock()} instead */ public void foreUnlock() { forceUnlock(); }
public Object execute(Token token) { if (lockOwner!=null) { token.unlock(lockOwner); } else { // requires newer jbpm version, see https://jira.jboss.org/jira/browse/JBPM-1888 token.forceUnlock(); } return token; }
public Object execute(Token token) { if (lockOwner!=null) { token.unlock(lockOwner); } else { // requires newer jbpm version, see https://jira.jboss.org/jira/browse/JBPM-1888 token.forceUnlock(); } return token; }