This is a follow up blog on a SAP blog about how to develop a custom workflow solution on the backend. This blog is to explain how workflow works on the SharePoint side and offer some customization entry points for you to create extended solutions leverage SAP backend process and SharePoint workflow and flexible UI options. First, let us review how workflow function is working on Duet Enterprise.DE workflow feature enables SAP business process expose to SharePoint in a declarative manner. It abstracts away the site structure needed to keep the distinct task types from exposing to the calling application. Each workflow decision step maps to a SharePoint task type. Each task type is hosted within a workflow subsite that is built on top of the taskflow template. The customization can be applied per task type without changing any backend code. SAP creates tasks via Duet Enterprise workflow service. SP end user interact with backend process via BDC task entity’s user actions to send decision result back.
You can configure Related Actions list to open collaboration workspace to show user the workflow related contextual information. DUET ENTERPRISE related actions web part will pick up the token and replace with the correct value below.
In this case, I am opening up a purchase order collaboration workspace that is related to this workflow. Say I want to approve PO ID 10010. SAP sends the POID extended property within the BizDoc XML payload. SharePoint will use this parameter to open the workspace for the specific business entity.
Alternatively, if I want to open a site page or application page or external page with the SAP parameters, I can configure the related links list to make it happen.In this case, I added an item to related links list and try to use the SAP biz document extended property named URL to generate a dynamic link.
http://www.bing.com/search?q={biz.URL}
2. Customize Task interface by modifying the SPD generated InfoPath form associated with the approval workflow.For example, you can have your custom web part to take additional user input and set the value for task item and complete the current workflow instance. SPWorkflowTask.AlterTask((task as SPListItem), ht, true);
2. You can modify the OOB SPD generated approval workflow. For instance you can add custom workflow activities or even plug in your own workflow to associate with the bizdoc library.
Finally, since as we pointed out earlier, the workflow in Duet Enterprise is designed to declarative and template based. After your customization, you can save the template for deployment and future reuse with other task types.
Hope this helps,happy coding.


0 comments:
Post a Comment