Interface MorpheusSynchronousProcessService
- All Superinterfaces:
MorpheusSynchronousDataService<Process,Process>
public interface MorpheusSynchronousProcessService
extends MorpheusSynchronousDataService<Process,Process>
-
Method Summary
Modifier and TypeMethodDescriptionendProcess(Process process, String processStatus, String output) End the process with the status specifiedendProcessStep(Process process, String processStatus, String output) Stops the last ProcessEvent associated with the ProcessendProcessStep(Process process, String processStatus, String output, Boolean appendOutput) Stops the last ProcessEvent associated with the ProcessendProcessStepAt(Process process, ProcessStepType lastStepType, String processStatus, String output, Boolean appendOutput) Stops a specific ProcessEvent associated with the Process.startProcess(Workload workload, ProcessStepType stepType, User user, String timerCategory) Start a new Process for the WorkloadstartProcess(Workload workload, ProcessStepType stepType, User user, String timerCategory, String eventTitle) Start a new Process for the WorkloadstartProcessStep(Process process, ProcessEvent nextEvent, String processStatus) Start a new ProcessEvent associated to the Process.startProcessStepAt(Process process, ProcessStepType lastStepType, ProcessEvent nextStep, String processStatus) Start a new ProcessEvent associated to the Process while ending a specific previous step.updateProcessStep(Process process, ProcessStepType lastStepType, ProcessStepUpdate stepUpdate, Boolean appendOutput) Updates the last ProcessEvent of type `lastStepType`Methods inherited from interface com.morpheusdata.core.MorpheusSynchronousDataService
bulkCreate, bulkRemove, bulkSave, count, create, create, find, get, getDataService, list, listById, listOptions, remove, remove, save, save, search
-
Method Details
-
startProcess
Start a new Process for the Workload- Parameters:
workload- the Workload to associate the Process tostepType- the ProcessStepType to startuser- the User that starts the process (optional)timerCategory- a category to associate with this Process. The category is used to provide estimated durations for a Process based on previous run of processes with this same category.- Returns:
- Boolean indicating success
-
startProcess
Process startProcess(Workload workload, ProcessStepType stepType, User user, String timerCategory, String eventTitle) Start a new Process for the Workload- Parameters:
workload- the Workload to associate the Process tostepType- the ProcessStepType to startuser- the User that starts the process (optional)timerCategory- a category to associate with this Process. The category is used to provide estimated durations for a Process based on previous run of processes with this same category.eventTitle- an event title to associate with this Process- Returns:
- Boolean indicating success
-
startProcessStep
Start a new ProcessEvent associated to the Process. This will end any currently running ProcessEvents associated to the Process- Parameters:
process- The Process on which to create a new ProcessEvent to startnextEvent- The new ProcessEvent to startprocessStatus- The status (i.e. 'complete', 'failed')- Returns:
- Boolean indicating success
-
startProcessStepAt
Boolean startProcessStepAt(Process process, ProcessStepType lastStepType, ProcessEvent nextStep, String processStatus) Start a new ProcessEvent associated to the Process while ending a specific previous step. This will end the ProcessEvent with the specified lastStepType and then start a new ProcessEvent.- Parameters:
process- The Process on which to create a new ProcessEvent to startlastStepType- The type of the last step to end before starting the new eventnextStep- The new ProcessEvent to startprocessStatus- The status (i.e. 'complete', 'failed')- Returns:
- Boolean indicating success
-
updateProcessStep
Boolean updateProcessStep(Process process, ProcessStepType lastStepType, ProcessStepUpdate stepUpdate, Boolean appendOutput) Updates the last ProcessEvent of type `lastStepType`- Parameters:
process- The process to search for an event of type `lastStepType`lastStepType- type of the last event to updatestepUpdate- update parameters for the eventappendOutput- true to append to the existing output; false to replace- Returns:
- Boolean indicating success
-
endProcessStep
Stops the last ProcessEvent associated with the ProcessThis will not appendOutput and will instead override it. If you want to preserve the existing output, use
endProcessStep(Process, String, String, Boolean)which allows you to specify appendOutput = true.- Parameters:
process- The Process from which to fetch the last ProcessEvent to stopprocessStatus- The status (i.e. 'complete', 'failed')output- The output to associate with the ProcessEvent- Returns:
- Boolean indicating success
-
endProcessStep
Stops the last ProcessEvent associated with the Process- Parameters:
process- The Process from which to fetch the last ProcessEvent to stopprocessStatus- The status (i.e. 'complete', 'failed')output- The output to associate with the ProcessEventappendOutput- true to append to the existing output; false to replace- Returns:
- Boolean indicating success
-
endProcessStepAt
Boolean endProcessStepAt(Process process, ProcessStepType lastStepType, String processStatus, String output, Boolean appendOutput) Stops a specific ProcessEvent associated with the Process.- Parameters:
process- The Process from which to fetch the last ProcessEvent to stoplastStepType- The type of the last step to endprocessStatus- The status (i.e. 'complete', 'failed'). If not specified, 'complete' is used.output- The output to associate with the ProcessEventappendOutput- true to append to the existing output; false to replace- Returns:
- Boolean indicating success
-
endProcess
End the process with the status specified- Parameters:
process- The Process to endprocessStatus- The status (i.e. 'complete', 'failed')output- The output to associate with the Process- Returns:
- Boolean indicating success
-