|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using OptimaJet.Workflow.Core.Model; |
| 4 | +using OptimaJet.Workflow.Core.Runtime; |
| 5 | + |
| 6 | +namespace OptimaJet.Workflow.Core.Persistence |
| 7 | +{ |
| 8 | + public interface IPersistenceProvider |
| 9 | + { |
| 10 | + void Init(WorkflowRuntime runtime); |
| 11 | + void InitializeProcess (ProcessInstance processInstance); |
| 12 | + void FillProcessParameters(ProcessInstance processInstance); |
| 13 | + void FillPersistedProcessParameters(ProcessInstance processInstance); |
| 14 | + void FillSystemProcessParameters(ProcessInstance processInstance); |
| 15 | + void SavePersistenceParameters(ProcessInstance processInstance); |
| 16 | + void SetWorkflowIniialized(ProcessInstance processInstance); |
| 17 | + void SetWorkflowIdled(ProcessInstance processInstance); |
| 18 | + void SetWorkflowRunning(ProcessInstance processInstance); |
| 19 | + void SetWorkflowFinalized(ProcessInstance processInstance); |
| 20 | + void SetWorkflowTerminated(ProcessInstance processInstance, ErrorLevel level, string errorMessage); |
| 21 | + void ResetWorkflowRunning(); |
| 22 | + void UpdatePersistenceState(ProcessInstance processInstance, TransitionDefinition transition); |
| 23 | + bool IsProcessExists(Guid processId); |
| 24 | + ProcessStatus GetInstanceStatus(Guid processId); |
| 25 | + void BindProcessToNewScheme(ProcessInstance processInstance); |
| 26 | + void BindProcessToNewScheme(ProcessInstance processInstance, bool resetIsDeterminingParametersChanged); |
| 27 | + void RegisterTimer(Guid processId, string name, DateTime nextExecutionDateTime, bool notOverrideIfExists); |
| 28 | + void ClearTimers(Guid processId, List<string> timersIgnoreList); |
| 29 | + void ClearTimersIgnore(); |
| 30 | + void ClearTimer(Guid timerId); |
| 31 | + DateTime? GetCloseExecutionDateTime(); |
| 32 | + List<TimerToExecute> GetTimersToExecute(); |
| 33 | + void DeleteProcess(Guid processId); |
| 34 | + void DeleteProcess(Guid[] processIds); |
| 35 | + } |
| 36 | +} |
0 commit comments