Class FlowableRuntimeUtils
- java.lang.Object
-
- org.apache.syncope.core.flowable.impl.FlowableRuntimeUtils
-
public final class FlowableRuntimeUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENABLED
static String
ENCRYPTED_PWD
static String
EVENT
static String
FORM_SUBMITTER
static String
PASSWORD
static String
PROP_BY_LINKEDACCOUNT
static String
PROP_BY_RESOURCE
static String
PROPAGATE_ENABLE
static String
TASK
static String
TOKEN
static String
USER
static String
USER_CR
static String
USER_TO
static String
USER_UR
static String
WF_EXECUTOR
static String
WF_PROCESS_ID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decrypt(String crypted)
static String
encrypt(String clear)
static String
getFormTask(DomainProcessEngine engine, String procInstId)
static ProcessDefinition
getLatestProcDefByKey(DomainProcessEngine engine, String key)
static Set<String>
getPerformedTasks(DomainProcessEngine engine, String procInstId)
static String
getProcBusinessKey(String procDefId, String userKey)
static String
getWFProcBusinessKey(String userKey)
static String
getWFProcInstID(DomainProcessEngine engine, String userKey)
static void
saveForFormSubmit(DomainProcessEngine engine, String procInstId, UserTO userTO, String password, Boolean enabled, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount)
Saves resources to be propagated and password for later - after form submission - propagation.static Pair<String,String>
splitProcBusinessKey(String procBusinessKey)
static void
throwException(org.flowable.common.engine.api.FlowableException e, String defaultMessage)
static void
updateStatus(DomainProcessEngine engine, String procInstId, User user)
-
-
-
Field Detail
-
WF_PROCESS_ID
public static final String WF_PROCESS_ID
- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
WF_EXECUTOR
public static final String WF_EXECUTOR
- See Also:
- Constant Field Values
-
FORM_SUBMITTER
public static final String FORM_SUBMITTER
- See Also:
- Constant Field Values
-
USER_CR
public static final String USER_CR
- See Also:
- Constant Field Values
-
USER_TO
public static final String USER_TO
- See Also:
- Constant Field Values
-
ENABLED
public static final String ENABLED
- See Also:
- Constant Field Values
-
USER_UR
public static final String USER_UR
- See Also:
- Constant Field Values
-
TASK
public static final String TASK
- See Also:
- Constant Field Values
-
TOKEN
public static final String TOKEN
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
PROP_BY_RESOURCE
public static final String PROP_BY_RESOURCE
- See Also:
- Constant Field Values
-
PROP_BY_LINKEDACCOUNT
public static final String PROP_BY_LINKEDACCOUNT
- See Also:
- Constant Field Values
-
PROPAGATE_ENABLE
public static final String PROPAGATE_ENABLE
- See Also:
- Constant Field Values
-
ENCRYPTED_PWD
public static final String ENCRYPTED_PWD
- See Also:
- Constant Field Values
-
EVENT
public static final String EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWFProcInstID
public static String getWFProcInstID(DomainProcessEngine engine, String userKey)
-
splitProcBusinessKey
public static Pair<String,String> splitProcBusinessKey(String procBusinessKey)
-
getLatestProcDefByKey
public static ProcessDefinition getLatestProcDefByKey(DomainProcessEngine engine, String key)
-
getPerformedTasks
public static Set<String> getPerformedTasks(DomainProcessEngine engine, String procInstId)
-
updateStatus
public static void updateStatus(DomainProcessEngine engine, String procInstId, User user)
-
getFormTask
public static String getFormTask(DomainProcessEngine engine, String procInstId)
-
saveForFormSubmit
public static void saveForFormSubmit(DomainProcessEngine engine, String procInstId, UserTO userTO, String password, Boolean enabled, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount)
Saves resources to be propagated and password for later - after form submission - propagation.- Parameters:
engine
- Flowable engineprocInstId
- process instance iduserTO
- user transfer objectpassword
- passwordenabled
- is user to be enabled or not?propByRes
- current propagation actions against resourcespropByLinkedAccount
- current propagation actions for linked accounts
-
throwException
public static void throwException(org.flowable.common.engine.api.FlowableException e, String defaultMessage)
-
-