public class FlowableUserWorkflowAdapter extends AbstractUserWorkflowAdapter implements WorkflowTaskManager
Modifier and Type | Field and Description |
---|---|
protected DomainProcessEngine |
engine |
protected ApplicationEventPublisher |
publisher |
protected UserRequestHandler |
userRequestHandler |
adminUser, anonymousUser, dataBinder, entityFactory, LOG, perContextAccountRules, perContextPasswordRules, realmDAO, userDAO
Constructor and Description |
---|
FlowableUserWorkflowAdapter() |
Modifier and Type | Method and Description |
---|---|
protected UserWorkflowResult<String> |
doActivate(User user,
String token) |
protected UserWorkflowResult<Pair<UserPatch,Boolean>> |
doConfirmPasswordReset(User user,
String token,
String password) |
protected UserWorkflowResult<Pair<String,Boolean>> |
doCreate(UserTO userTO,
boolean disablePwdPolicyCheck,
Boolean enabled,
boolean storePassword) |
protected void |
doDelete(User user) |
protected Set<String> |
doExecuteNextTask(String procInstID,
User user,
Map<String,Object> moreVariables) |
protected UserWorkflowResult<String> |
doReactivate(User user) |
protected void |
doRequestPasswordReset(User user) |
protected UserWorkflowResult<String> |
doSuspend(User user) |
protected UserWorkflowResult<Pair<UserPatch,Boolean>> |
doUpdate(User user,
UserPatch userPatch) |
UserWorkflowResult<String> |
executeNextTask(WorkflowTaskExecInput workflowTaskExecInput)
Execute a task on an user.
|
List<WorkflowTask> |
getAvailableTasks(String userKey)
Get tasks available for execution, for given user.
|
String |
getPrefix() |
<T> T |
getVariable(String executionId,
String variableName,
Class<T> variableClass)
Gets variable value.
|
protected User |
lazyLoad(User user) |
protected void |
navigateAvailableTasks(org.flowable.bpmn.model.FlowElement flow,
List<String> availableTasks) |
void |
setVariable(String executionId,
String variableName,
Object value)
Updates or create sa variable for an execution.
|
activate, confirmPasswordReset, create, create, delete, enforcePolicies, getAccountPolicies, getAccountRules, getPasswordPolicies, getPasswordRules, internalSuspend, reactivate, requestPasswordReset, suspend, update
@Autowired protected DomainProcessEngine engine
@Autowired protected UserRequestHandler userRequestHandler
@Autowired protected ApplicationEventPublisher publisher
public String getPrefix()
getPrefix
in interface WorkflowAdapter
getPrefix
in class AbstractUserWorkflowAdapter
public <T> T getVariable(String executionId, String variableName, Class<T> variableClass)
WorkflowTaskManager
getVariable
in interface WorkflowTaskManager
T
- variable typeexecutionId
- id of execution, cannot be null.variableName
- name of variable, cannot be null.variableClass
- class of variable, cannot be null.public void setVariable(String executionId, String variableName, Object value)
WorkflowTaskManager
setVariable
in interface WorkflowTaskManager
executionId
- id of execution to set variable in, cannot be null.variableName
- name of variable to set, cannot be null.value
- value to set; when null is passed, the variable is not removed, only it's value will be set to nullprotected UserWorkflowResult<Pair<String,Boolean>> doCreate(UserTO userTO, boolean disablePwdPolicyCheck, Boolean enabled, boolean storePassword)
doCreate
in class AbstractUserWorkflowAdapter
protected Set<String> doExecuteNextTask(String procInstID, User user, Map<String,Object> moreVariables)
protected UserWorkflowResult<String> doActivate(User user, String token)
doActivate
in class AbstractUserWorkflowAdapter
protected UserWorkflowResult<Pair<UserPatch,Boolean>> doUpdate(User user, UserPatch userPatch)
doUpdate
in class AbstractUserWorkflowAdapter
protected UserWorkflowResult<String> doSuspend(User user)
doSuspend
in class AbstractUserWorkflowAdapter
protected UserWorkflowResult<String> doReactivate(User user)
doReactivate
in class AbstractUserWorkflowAdapter
protected void doRequestPasswordReset(User user)
doRequestPasswordReset
in class AbstractUserWorkflowAdapter
protected UserWorkflowResult<Pair<UserPatch,Boolean>> doConfirmPasswordReset(User user, String token, String password)
doConfirmPasswordReset
in class AbstractUserWorkflowAdapter
protected void doDelete(User user)
doDelete
in class AbstractUserWorkflowAdapter
public UserWorkflowResult<String> executeNextTask(WorkflowTaskExecInput workflowTaskExecInput)
WorkflowTaskManager
executeNextTask
in interface WorkflowTaskManager
workflowTaskExecInput
- input for task executionprotected void navigateAvailableTasks(org.flowable.bpmn.model.FlowElement flow, List<String> availableTasks)
public List<WorkflowTask> getAvailableTasks(String userKey)
WorkflowTaskManager
getAvailableTasks
in interface WorkflowTaskManager
userKey
- user keyCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.