bpmn-server / DefaultAppDelegate
Class: DefaultAppDelegate#
Application Delegate Object to respond to various events and services:
- receive all events from workflow
- receive service calls
- receive message and signal calls
- execute scripts
Implements#
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
- getServicesProvider
- startUp
- sendEmail
- executionStarted
- executionEvent
- messageThrown
- issueMessage
- issueSignal
- signalThrown
- serviceCalled
Constructors#
constructor#
• new DefaultAppDelegate(server
): DefaultAppDelegate
Parameters#
Name | Type |
---|---|
server |
any |
Returns#
Defined in#
engine/DefaultAppDelegate.ts:11
Properties#
server#
• server: any
Defined in#
engine/DefaultAppDelegate.ts:8
Accessors#
moddleOptions#
• get
moddleOptions(): Object
Returns#
Object
Name | Type |
---|---|
name |
string |
uri |
string |
prefix |
string |
xml |
{ tagAlias : string = "lowerCase" } |
xml.tagAlias |
string |
types |
({ name : string = "Task"; isAbstract : boolean = true; extends : string [] ; properties : { name : string = "result"; isAttr : boolean = true; type : string = "String" }[] ; superClass? : undefined } | { isAbstract? : undefined = true; extends? : undefined ; properties? : undefined ; name : string = "Output"; superClass : string [] })[] |
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:29
Methods#
getServicesProvider#
▸ getServicesProvider(context
): Promise
\<DefaultAppDelegate
>
Parameters#
Name | Type |
---|---|
context |
any |
Returns#
Promise
\<DefaultAppDelegate
>
Implementation of#
IAppDelegate.getServicesProvider
Defined in#
engine/DefaultAppDelegate.ts:18
startUp#
▸ startUp(options
): void
Parameters#
Name | Type |
---|---|
options |
any |
Returns#
void
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:22
sendEmail#
▸ sendEmail(to
, msg
, body
): void
Parameters#
Name | Type |
---|---|
to |
any |
msg |
any |
body |
any |
Returns#
void
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:25
executionStarted#
▸ executionStarted(execution
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
execution |
IExecution |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:32
executionEvent#
▸ executionEvent(context
, event
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
context |
any |
event |
any |
Returns#
Promise
\<void
>
Defined in#
engine/DefaultAppDelegate.ts:35
messageThrown#
▸ messageThrown(messageId
, data
, messageMatchingKey
, item
): Promise
\<void
>
is called when a event throws a message
Parameters#
Name | Type |
---|---|
messageId |
any |
data |
any |
messageMatchingKey |
any |
item |
Item |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:46
issueMessage#
▸ issueMessage(messageId
, data
): Promise
\<void
>
is called when an event throws a message that can not be answered by another process
Parameters#
Name | Type |
---|---|
messageId |
any |
data |
any |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:64
issueSignal#
▸ issueSignal(signalId
, data
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
signalId |
any |
data |
any |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:67
signalThrown#
▸ signalThrown(signalId
, data
, messageMatchingKey
, item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
signalId |
any |
data |
any |
messageMatchingKey |
any |
item |
Item |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
engine/DefaultAppDelegate.ts:70
serviceCalled#
▸ serviceCalled(serviceName
, data
, item
): Promise
\<void
>
is called only if the serviceTask has no implementation; otherwise the specified implementation will be called.
Parameters#
Name | Type |
---|---|
serviceName |
any |
data |
any |
item |
Item |
Returns#
Promise
\<void
>