org.jbpm.command
Class UnlockTokenCommand
java.lang.Object
org.jbpm.command.AbstractTokenBaseCommand
org.jbpm.command.UnlockTokenCommand
- All Implemented Interfaces:
- Serializable, Command
public class UnlockTokenCommand
- extends AbstractTokenBaseCommand
Unlocks the given token. Either the correct lockOwner has
to be provided (otherwise an exception is thrown) or
NO lockOwner is provided at all, then the lock is
removed "with force".
- Author:
- bernd.ruecker@camunda.com
- See Also:
- Serialized Form
| Methods inherited from class org.jbpm.command.AbstractTokenBaseCommand |
execute, getJbpmContext, getProcessName, getProcessVersion, getStateName, getTokenId, getTokenIds, processName, processVersion, setProcessName, setProcessVersion, setStateName, setTokenId, setTokenIds, stateName, tokenId, tokenIds, toString |
UnlockTokenCommand
public UnlockTokenCommand()
execute
public Object execute(Token token)
- Specified by:
execute in class AbstractTokenBaseCommand
getAdditionalToStringInformation
public String getAdditionalToStringInformation()
- Overrides:
getAdditionalToStringInformation in class AbstractTokenBaseCommand
getLockOwner
public String getLockOwner()
setLockOwner
public void setLockOwner(String lockOwner)
lockOwner
public UnlockTokenCommand lockOwner(String lockOwner)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.