• Getting started - How to use Workflow for XPages?

    By Don Mottolo 1 decade ago

    Any tips on getting started using the "Workflow for XPages" on OpentNTF? The documentation is pretty high-level, and mostly about the sample app. Page 24 is the only one with info about using the simple workflow engine. So I'm digging into the EmployeeReview.nsf example database, but could use some pointers?

    (Sorry, I sent an email yesterday, but meant to post it here)

    • Guide to use Workflow for XPages

      By Qian Liang 1 decade ago

      First, install XPage Extension Library into Domino server and Designer. Then follow this guide to install Workflow for XPages into Domino server(similar with installation of XPages Extension Library): http://www.openntf.org/internal/home.nsf/response.xsp?action=openDocument&documentId=A35BDE3FAE52FAD0862579F7000AD055&MainID=9CD79FBE94826288862579F2005E4975 . And also install Workflow for XPages into designer.

      If all these installed, we can get to use it:

          - In Designer, create a new nsf application;

          - In Application Properties → Advanced tab, add required libraries: com.ibm.xsp.extlib.library and com.ibm.xsp.xflow.library

          - Drag the SimpleWorkflow control to your Xpage

          - Define your workflow process in SimpleWorkflow's “Process” property

          - Design your form in the XPage as usual

          - Access workflow data through data bean workflowContext in Xpage. With workflowContext, you can process related information like current/next step etc.

          - Use custom control wkWorkflowActions to show workflow action bar

      Once user creates a document with this XPage, one process instance will be created. Click on the action will move the process to next step and Access control for the document will be set automatically.

      Beyond this main workflow XPage, we also need to create some helper XPages. One is To List page, it will show all Todo for a user.