Class FlowableUserWorkflowAdapter

    • Field Detail

      • publisher

        protected final org.springframework.context.ApplicationEventPublisher publisher
    • Constructor Detail

      • FlowableUserWorkflowAdapter

        public FlowableUserWorkflowAdapter​(org.apache.syncope.core.provisioning.api.data.UserDataBinder dataBinder,
                                           org.apache.syncope.core.persistence.api.dao.UserDAO userDAO,
                                           org.apache.syncope.core.persistence.api.dao.RealmDAO realmDAO,
                                           org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory,
                                           org.apache.syncope.core.spring.security.SecurityProperties securityProperties,
                                           DomainProcessEngine engine,
                                           UserRequestHandler userRequestHandler,
                                           org.springframework.context.ApplicationEventPublisher publisher)
    • Method Detail

      • getVariable

        public <T> T getVariable​(String executionId,
                                 String variableName,
                                 Class<T> variableClass)
        Description copied from interface: WorkflowTaskManager
        Gets variable value. Returns null when no variable value is found with the given name or when the value is set to null.
        Specified by:
        getVariable in interface WorkflowTaskManager
        Type Parameters:
        T - variable type
        Parameters:
        executionId - id of execution, cannot be null.
        variableName - name of variable, cannot be null.
        variableClass - class of variable, cannot be null.
        Returns:
        the variable value or null if the variable is undefined or the value of the variable is null.
      • setVariable

        public void setVariable​(String executionId,
                                String variableName,
                                Object value)
        Description copied from interface: WorkflowTaskManager
        Updates or create sa variable for an execution.
        Specified by:
        setVariable in interface WorkflowTaskManager
        Parameters:
        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 null
      • lazyLoad

        protected org.apache.syncope.core.persistence.api.entity.user.User lazyLoad​(org.apache.syncope.core.persistence.api.entity.user.User user)
      • doCreate

        protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<String,​Boolean>> doCreate​(org.apache.syncope.common.lib.request.UserCR userCR,
                                                                                                                                                  boolean disablePwdPolicyCheck,
                                                                                                                                                  Boolean enabled,
                                                                                                                                                  String creator,
                                                                                                                                                  String context)
        Specified by:
        doCreate in class AbstractUserWorkflowAdapter
      • doExecuteNextTask

        protected Set<String> doExecuteNextTask​(String procInstID,
                                                org.apache.syncope.core.persistence.api.entity.user.User user,
                                                Map<String,​Object> moreVariables)
      • doUpdate

        protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,​Boolean>> doUpdate​(org.apache.syncope.core.persistence.api.entity.user.User user,
                                                                                                                                                                                        org.apache.syncope.common.lib.request.UserUR userUR,
                                                                                                                                                                                        String updater,
                                                                                                                                                                                        String context)
        Specified by:
        doUpdate in class AbstractUserWorkflowAdapter
      • doConfirmPasswordReset

        protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,​Boolean>> doConfirmPasswordReset​(org.apache.syncope.core.persistence.api.entity.user.User user,
                                                                                                                                                                                                      String token,
                                                                                                                                                                                                      String password,
                                                                                                                                                                                                      String updater,
                                                                                                                                                                                                      String context)
        Specified by:
        doConfirmPasswordReset in class AbstractUserWorkflowAdapter
      • executeNextTask

        public org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> executeNextTask​(WorkflowTaskExecInput workflowTaskExecInput)
        Description copied from interface: WorkflowTaskManager
        Execute a task on an user.
        Specified by:
        executeNextTask in interface WorkflowTaskManager
        Parameters:
        workflowTaskExecInput - input for task execution
        Returns:
        user after task execution
      • navigateAvailableTasks

        protected static void navigateAvailableTasks​(org.flowable.bpmn.model.FlowElement flow,
                                                     List<String> availableTasks)