LSPS documentation logo
LSPS Documentation
Tasks

Human

User

Generates a to-do that serves to present information to users and collect user input.

title : String

title of the generated to-do

performers : Set<Performer>

process performers who can see the generated to-do

uiDefinition : UIDefinition

content of the generated to-do

escalationTimeout : Duration

Deprecated! Use GO-BPMN escalation mechanism (for example throwEscalation() function). Period of time from the start of the task until its escalation. If null, the task never escalates.

issueAction : {Todo : void}

closure executed after the to-do is generated with the to-do as its input parameter

navigation : {Set<Todo> : Navigation}

closure executed after the task is accomplished. The return value of the closure specifies where the UI is navigated after the to-do is submitted.

Throws:

  • NullParameterError if a mandatory parameter is null
AddPersonToRole

Adds the person to the role. If the role does not exist, it is created.

person : Person

person

role : Role

role

Throws:

  • NullParameterError if a mandatory parameter is not specified
RemovePersonFromRole

Removes the persom from the role.

person : Person

person

role : Role

role to remove from the person

Throws:

  • NullParameterError if a mandatory parameter is not specified
SendEmail
Sends an email using the email server of the application server.
subject : String

email subject

body : String

email body

attachments : Set<File>

attachments

from : String

email address of sender. If not specified, the default (given by application server settings) is used.

recipientsTo : Set<String>

email addresses of recipients TO

recipientsCc : Set<String>

email addresses of recipients CC

recipientsBcc : Set<String>

email addresses of recipients BCC

mime : String

Mime subtype without "text/", e.g plain, html, rtf.

charset : String

Name of character encoding used for subject and body of e-mail, for instance, “ISO-8859-1”, “UTF-8”, “windows-1250”, etc. If not speci- fied, the default is “UTF-8”. The supported encodings vary between different implementations of the Java platform, see Java docu- mentation for details.