Thursday, 17 July 2008

[Workflow] Notification via Email

The user can be informed via email that a task has been assigned to him. The subject of the email contains the BPC description. The file .m4, which can be used to run the task directly in windows/rich client, is attached. The body of the email contains the state description and, if available, a URL to run the task in light client.



To enable the URL in the email, the two following conditions have to be met:

  1. The application parameter WORKFLOWRT / THINCLIENT / SERVER_URL should have a valid value, e.g. http://server.meta4.com:8100/.
  2. The task associated to the state should have code of type Thin Client Code assigned that contains two variables that ends with:
    "_PREINITTASKPAGE" that is generic, e.g. "_PREINITTASKPAGE=/sse_generico/##LANG##/generico_login.jsp?_A=/servlet/CheckSecurity/JSP&znivel=1&_B=/sse_generico/generico_invisible.jsp&_C="
    "_INITTASKPAGE" that indicates the page to be called, e.g. "_INITTASKPAGE=/mss_g1/mss_g1_p1_val.jsp?estado=11".

Note: The only dynamic parameter passed to the page is the work-item id (ID_WORKITEM) that is added automatically.

Example URL:

http://server.meta4.com:8100/sse_generico/english/generico_login.jsp?_A=/servlet/CheckSecurity/JSP&znivel=1&_B=/sse_generico/generico_invisible.jsp&_C=/mss_g1/mss_g1_p1_val.jsp?estado=11&ID_WORKITEM="work-item"
New in version 7.1 SP002 (of technology)
By default, the subject and the text of the email are retrieved from the description of the workflow and the description of the state; now exists the possibility to define an alternative subject/text for the email.

No comments: