Creating a Workflow from a SharePoint List or Library
You can add a workflow to your Application while creating the Application for the first time or at some later time. To add a workflow to your application when creating the application, follow these steps: .
- Select the K2 Application icon from the SharePoint List or Library ribbon.
- On the Create K2 Application page, select the check box next to the Workflow element.
-
A section will appear where you need to provide some settings for the workflow, such as the workflow name and how the workflow will be started. In the Workflow Name text box, provide a Name for the new workflow.
K2 automatically creates a name using the SharePoint List or Library name followed by the word Workflow, , but you can also rename your workflow.
-
Select one of the radio buttons to specify how you want to start your workflow:
- When a SmartForm is submitted: Start your workflow only when a user completes and submits a SmartForm. This option will only be available if you checked "Forms" in Step 2. Use the drop-down menu to select the Form that will be used to start the workflow:
- New...: form that appears when you add a new item to a list
- Edit....: form that appears when you edit an item in a list
- Display....: form that appears when you view a single item from a list
When the following events occur: Start your workflow after one or more selected SharePoint events occur, even if those events are not driven by a user interaction. Use this option to automatically start a workflow when other applications or users create a new item in the SharePoint List or Library. Select from events such as adding, updating or deleting an item.
If you want users to manually start the workflow by submitting the SharePoint Item to a workflow, select the Workflow is manually startedevent
- When a SmartForm is submitted: Start your workflow only when a user completes and submits a SmartForm. This option will only be available if you checked "Forms" in Step 2. Use the drop-down menu to select the Form that will be used to start the workflow:
- Click OK at the bottom of the page.
- The workflow design canvas will now open. On the design canvas, start building your workflow by adding Workflow Steps.
You can optionally edit the Workflow Settings through the wizard by clicking the workflow start icon
To create new workflows in an existing K2 Application, Click + New at the top of the K2 Application page and select Workflow from the menu.