Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 51792c1

Browse files
committed
Added editorconfig file
1 parent 9143f36 commit 51792c1

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

documentation/STEPS.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,42 @@ Finally, configure your route criteria
7777

7878
See *XQuery Expressions* later in this document for details on expressions, and examples.
7979

80+
## Send Task
81+
82+
This task can send SOAP, HTTP-REST and Email messages (amongst others). It is currently in development, with smtp
83+
email sending support scheduled first, and other features being added as needed later.
84+
85+
See the CPF action sendTask.xqy for the implementation.
86+
87+
First, create a Send Task:-
88+
- Drop a Send Task on to the process diagram
89+
- Click on Propeties -> Send task
90+
91+
Note that you have to assign an operation and a message. These are actually created at the top level of the process diagram.
92+
93+
To create an operation:-
94+
- Left click on the background of the process diagram
95+
- In the bottom window, click Properties
96+
- Click on the Interfaces tab
97+
- Under 'Interface List', click the plus icon
98+
- Create an interface with the EXACT name EmailInterface with Implementation set to EXACTLY EmailInterface
99+
- Add an operation for each individual email template you wish to send (E.g. send rejected, send accepted)
100+
- You can name these anything you like, be sure to provide a name and an implementation name
101+
- Set the Out Message to point to an XML Schema definition that consists of your message
102+
103+
TODO Document how the VALUE not SCHEMA for this message is created (read BPMN2 spec and examples).
104+
105+
Now go back and edit the Send Task:-
106+
- Left click on the send task
107+
- Click on Propeties
108+
- Click on the 'Send Task' tab
109+
- In attributes:-
110+
- Set implementation to Unknown
111+
- Set Operation to EmailInterface/SendRejected (or whatever you called it)
112+
- Message should be automatically selected (RejectedEmail in my example 021-initiating-attachment.bpmn)
113+
114+
Save the process diagram (validates your configuration of the task - no red stars mean it's configured properly).
115+
80116
## Additional notes
81117

82118
There are some configuration elements that are true across multiple steps. These are documented below.

modules/app/models/workflow-import.xqy

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ declare function m:bpmn2-to-cpf($pname as xs:string, $doc as element(b2:definiti
659659

660660
,
661661

662-
(: Send email example :)
662+
(: Send email example - sendTask.xqy :)
663663
for $state in $start/b2:sendTask
664664
let $message := $doc/b2:message[@id = $state/@messageRef]
665665
let $item := $doc/b2:itemDefinition[@id = $message/@itemRef]
@@ -689,6 +689,24 @@ declare function m:bpmn2-to-cpf($pname as xs:string, $doc as element(b2:definiti
689689

690690
,
691691

692+
693+
694+
695+
696+
697+
698+
699+
(: DEV ADD YOUR CUSTOM TASK DEFINITION IMPORTS ABOVE HERE!!! BE SURE TO NOT FORGET THE TRAILING COMMA!!! :)
700+
701+
702+
703+
704+
705+
706+
707+
708+
709+
692710
(: *** TODO SPRINT 2: CPF CUSTOM ACTIVITY SUPPORT *** :)
693711

694712
(: *** TODO SPRINT 3: ADVANCED BPMN2 PROCESS ORCHESTRATION ACTIVITY SUPPORT *** :)

0 commit comments

Comments
 (0)