@@ -77,6 +77,42 @@ Finally, configure your route criteria
7777
7878See * 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
82118There are some configuration elements that are true across multiple steps. These are documented below.
0 commit comments