public interface WorkflowDao
| Modifier and Type | Method and Description |
|---|---|
void |
createDefaultPostFunctions(WorkflowTransitionConditionGroup transitionConditionGroup)
Creates default post-functions for the specified group of transition conditions.
|
void |
deletePostFunction(WorkflowPostFunction postFunction)
Deletes the specified post-function with all child entities.
|
void |
deleteTransitionConditionGroup(WorkflowTransitionConditionGroup transitionConditionGroup)
Deletes the specified transition condition group with all child entities.
|
WorkflowTransition |
getActiveWorkflowTransitionByName(String name)
Returns a transition from the active version of the transition model by its unique name.
|
<C extends WorkflowCondition> |
getConditions(Class<C> conditionClass,
WorkflowTransitionConditionGroup conditionGroup) |
WorkflowStep |
getCurrentStep(WorkflowableTask task)
Returns the current step for the specified activity.
|
WorkflowStep |
getHiddenStep(WorkflowVersion version)
Returns a step with the HIDDEN status for the specified version of the transition model.
|
WorkflowStep |
getInitialStep(io.tesler.api.data.dictionary.LOV taskType)
Returns the initial step for the transition model corresponding to the specified project and task type.
|
WorkflowTransitionHistory |
getLastTransitionHistory(WorkflowTask task)
Returns the last transition history record for the specified task.
|
WorkflowTransitionHistory |
getLastTransitionHistoryByDestinationStep(WorkflowTask task,
WorkflowStep destinationStep)
Returns the last transition history record for the specified task corresponding to the transition at the specified step.
|
WorkflowTransition |
getLastWorkflowTransitionByName(String name)
Returns a transition from the latest version of the transition model by its unique name.
|
BigDecimal |
getMaxVersion(Workflow workflow)
Returns the maximum version number for the specified transition model.
|
BigDecimal |
getNextVersion(Workflow workflow,
boolean majorVersion)
Returns the next version number for the specified transition model.
|
WorkflowStep |
getStepByName(WorkflowVersion version,
String name)
Returns the step of the specified version of the transition model by its unique name.
|
List<io.tesler.api.data.dictionary.LOV> |
getTaskTypesNotInWf()
Returns a list of TASK_TYPE types that do not have transition models created in the specified project.
|
WorkflowTransition |
getTransition(io.tesler.api.data.dictionary.LOV taskType,
io.tesler.api.data.dictionary.LOV sourceStepTaskStatus,
io.tesler.api.data.dictionary.LOV destinationStepTaskStatus)
Returns the transition of the active transition model corresponding to the specified task type between steps with the specified statuses.
|
WorkflowTransition |
getTransitionBetweenSteps(WorkflowStep sourceStep,
WorkflowStep destinationStep) |
WorkflowTransition |
getTransitionByName(WorkflowVersion version,
String name)
Returns the transition of the specified version of the transition model by its unique name.
|
List<WorkflowTransition> |
getTransitions(WorkflowStep sourceStep) |
List<WorkflowTransition> |
getTransitionsByName(Workflow workflow,
String name)
Returns all transitions of the specified transition model whose unique names are equal to the specified one.
|
WorkflowStep |
getWorkflowStep(WorkflowTask workflowTask)
Get workflow step, assigned on workflow task
|
WorkflowVersion |
getWorkflowVersion(WorkflowableTask task)
Returns the version of the transition model for the specified activity.
|
boolean |
isInitialStep(WorkflowStep step)
* Checks whether the specified step is the initial step for its transition model.
|
void |
setWorkflowStep(WorkflowTask workflowTask,
WorkflowStep workflowStep)
Sets workflow step to workflow task
|
WorkflowStep getCurrentStep(WorkflowableTask task)
task - taskWorkflowStep getHiddenStep(WorkflowVersion version)
version - version of the transition modelWorkflowStep getInitialStep(io.tesler.api.data.dictionary.LOV taskType)
taskType - task typeboolean isInitialStep(WorkflowStep step)
step - stepWorkflowStep getStepByName(WorkflowVersion version, String name)
version - version of the transition modelname - the unique name of the stepList<WorkflowTransition> getTransitionsByName(Workflow workflow, String name)
workflow - transition modelname - unique transition nameWorkflowTransition getTransitionByName(WorkflowVersion version, String name)
version - version of the transition modelname - unique transition nameWorkflowTransition getLastWorkflowTransitionByName(String name)
name - unique transition nameWorkflowTransition getActiveWorkflowTransitionByName(String name)
name - unique name of the transitionWorkflowTransition getTransition(io.tesler.api.data.dictionary.LOV taskType, io.tesler.api.data.dictionary.LOV sourceStepTaskStatus, io.tesler.api.data.dictionary.LOV destinationStepTaskStatus)
taskType - type of tasksourceStepTaskStatus - initial step statusdestinationStepTaskStatus - the status of the final stepWorkflowTransitionHistory getLastTransitionHistoryByDestinationStep(WorkflowTask task, WorkflowStep destinationStep)
task - taskdestinationStep - destination step of the transitionWorkflowTransitionHistory getLastTransitionHistory(WorkflowTask task)
task - taskvoid createDefaultPostFunctions(WorkflowTransitionConditionGroup transitionConditionGroup)
transitionConditionGroup - transition condition groupvoid deletePostFunction(WorkflowPostFunction postFunction)
postFunction - post functionvoid deleteTransitionConditionGroup(WorkflowTransitionConditionGroup transitionConditionGroup)
transitionConditionGroup - transition condition groupWorkflowVersion getWorkflowVersion(WorkflowableTask task)
task - activityList<io.tesler.api.data.dictionary.LOV> getTaskTypesNotInWf()
BigDecimal getMaxVersion(Workflow workflow)
workflow - transition modelBigDecimal getNextVersion(Workflow workflow, boolean majorVersion)
workflow - transition modelmajorVersion - should there be a next major versionWorkflowStep getWorkflowStep(WorkflowTask workflowTask)
void setWorkflowStep(WorkflowTask workflowTask, WorkflowStep workflowStep)
WorkflowTransition getTransitionBetweenSteps(WorkflowStep sourceStep, WorkflowStep destinationStep)
sourceStep - source stepdestinationStep - destination stepList<WorkflowTransition> getTransitions(WorkflowStep sourceStep)
sourceStep - source step<C extends WorkflowCondition> List<C> getConditions(Class<C> conditionClass, WorkflowTransitionConditionGroup conditionGroup)
conditionClass - class of entity related to WF_COND table specified in WorkflowSettingsconditionGroup - condition group of conditionsCopyright © 2018–2021 Tesler. All rights reserved.