than the Default Worklist Handler, you can make the appropriate choice from a list in the Decomposition’s Custom Service property (see the following section). The Editor populates the list of available services by making a call to a running YAWL Engine, which returns the list of services currently registered with it. Before this can occur, the Editor must first establish a valid connection to a running Engine. Why connect to the Resource Service? To use the organisational data managed by the Resource Service, for example to assign tasks to Participants or Roles, a connection between the Editor and the Resource Ser- vice needs to be established. The Editor populates the Resources Dialog with all the necessary organisational data needed. On Editor startup, a connection to a running Engine and Resource Service is attempted. If successful, the connection icon at the left of the status bar will turn green (the left icon represents the Engine connection, the right icon the Resource Service connection). If unsuccessful (perhaps because the Engine is not running, or the connection parameters are incorrect) the connection icon(s) will show red. After the Editor has started, an connection parameters may be updated via the Preferences Dialog. To establish a connection with a running YAWL Engine or Resource Service, or to change the connection parameters: 1. Click the F ile Menu and choose Preferences . . . . 2. On the Preferences Dialog, choose ‘Connections’ from the list on the left (Figure 4.49). Here you can specify the host name (default: localhost) and port (default: 8080) that represent the locations of the
98 CHAPTER 4. THE EDITOR Engine and Resource Service. Most times the defaults are sufficient, but may be changed if the Engine or Resource Service are installed remotely, or if the port needs to be changed because the default port was already in use. You may also specify an alternate user name and/or password to use for the connection. Note that the user must have administrator privileges. A default user editor with password yEditor are pre-installed for use. Figure 4.49: Preferences Dialog, Connections panel For convenience, a Test Connections button is provided, which will allow you to test the connection using the supplied parameters before you commit them. Click OK to finalise the connection settings. 4.10.2 Connecting a Decomposition to a registered YAWL Service Each task decomposition within a workflow must be associated with a custom YAWL service that has been registered with the YAWL Engine. By associating a task decomposition with a custom service, all task instances based on that decomposition will be passed to that custom service at runtime for processing – that is, the custom service is responsible for performing the work of the task instance.
- Spring '17
- The School, yawl