mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
Rollback and custom events preparation (#10298)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -158,6 +158,19 @@ export interface UserResult {
|
||||
type: Type<any>
|
||||
}
|
||||
|
||||
export interface ProcessCustomEvent extends Doc {
|
||||
eventType: string
|
||||
execution: Ref<Execution>
|
||||
card: Ref<Card>
|
||||
}
|
||||
|
||||
export interface EventButton extends Doc {
|
||||
title: string
|
||||
eventType: string
|
||||
execution: Ref<Execution>
|
||||
card: Ref<Card>
|
||||
}
|
||||
|
||||
export interface Method<T extends Doc> extends Doc {
|
||||
label: IntlString
|
||||
objectClass: Ref<Class<T>>
|
||||
@@ -206,12 +219,17 @@ export default plugin(processId, {
|
||||
ProcessFunction: '' as Ref<Class<ProcessFunction>>,
|
||||
Transition: '' as Ref<Class<Transition>>,
|
||||
Trigger: '' as Ref<Class<Trigger>>,
|
||||
ProcessCustomEvent: '' as Ref<Class<ProcessCustomEvent>>,
|
||||
ExecutionLog: '' as Ref<Class<ExecutionLog>>,
|
||||
UpdateCriteriaComponent: '' as Ref<Class<UpdateCriteriaComponent>>
|
||||
UpdateCriteriaComponent: '' as Ref<Class<UpdateCriteriaComponent>>,
|
||||
EventButton: '' as Ref<Class<EventButton>>
|
||||
},
|
||||
method: {
|
||||
RunSubProcess: '' as Ref<Method<Process>>,
|
||||
CreateAction: '' as Ref<Method<EventButton>>,
|
||||
CancellAction: '' as Ref<Method<EventButton>>,
|
||||
CreateToDo: '' as Ref<Method<ProcessToDo>>,
|
||||
CloseToDo: '' as Ref<Method<ProcessToDo>>,
|
||||
UpdateCard: '' as Ref<Method<Card>>,
|
||||
CreateCard: '' as Ref<Method<Card>>,
|
||||
AddRelation: '' as Ref<Method<Association>>,
|
||||
@@ -226,7 +244,8 @@ export default plugin(processId, {
|
||||
OnToDoRemove: '' as Ref<Trigger>,
|
||||
OnExecutionStart: '' as Ref<Trigger>,
|
||||
OnExecutionContinue: '' as Ref<Trigger>,
|
||||
OnTime: '' as Ref<Trigger>
|
||||
OnTime: '' as Ref<Trigger>,
|
||||
OnEvent: '' as Ref<Trigger>
|
||||
},
|
||||
triggerCheck: {
|
||||
ToDo: '' as Resource<CheckFunc>,
|
||||
@@ -234,7 +253,8 @@ export default plugin(processId, {
|
||||
FieldChangedCheck: '' as Resource<CheckFunc>,
|
||||
SubProcessesDoneCheck: '' as Resource<CheckFunc>,
|
||||
SubProcessMatchCheck: '' as Resource<CheckFunc>,
|
||||
Time: '' as Resource<CheckFunc>
|
||||
Time: '' as Resource<CheckFunc>,
|
||||
OnEventCheck: '' as Resource<CheckFunc>
|
||||
},
|
||||
string: {
|
||||
Method: '' as IntlString,
|
||||
@@ -276,7 +296,8 @@ export default plugin(processId, {
|
||||
WaitSubprocesses: '' as Asset,
|
||||
ToDoRemove: '' as Asset,
|
||||
Start: '' as Asset,
|
||||
Time: '' as Asset
|
||||
Time: '' as Asset,
|
||||
OnEvent: '' as Asset
|
||||
},
|
||||
function: {
|
||||
FirstMatchValue: '' as Ref<ProcessFunction>,
|
||||
|
||||
Reference in New Issue
Block a user