Hello Everyone,

This document describes how to make a simple BPM process with Integration of a WD UI (WDJ in this case), importing and using a Web-Service in the process and creating an XML schema to be used in the Project.

Pease follow the following steps and refer to the snapshots to create a sample process:

1. Create the BPM DC:

/wp-content/uploads/2013/09/1_288553.jpg

2. Select the Perspective:

/wp-content/uploads/2013/09/1_288553.jpg

3. Name the DC and give necessary description:

/wp-content/uploads/2013/09/1_288553.jpg

4.  Created DC:

/wp-content/uploads/2013/09/1_288553.jpg

5. Creating a New Process:

/wp-content/uploads/2013/09/1_288553.jpg

6.  Naming your Process and selecting the orientation:

/wp-content/uploads/2013/09/1_288553.jpg

The created process:

/wp-content/uploads/2013/09/1_288553.jpg

7. Creating Process Context Data:

Drag and drop a Data Object artifact from the pallette into the process

/wp-content/uploads/2013/09/1_288553.jpg

8.  Creating an Automated Activity:

/wp-content/uploads/2013/09/1_288553.jpg

  Created Process with Automated Activity and Data Object:

/wp-content/uploads/2013/09/1_288553.jpg

9. Creating XML Schema Definition(XSD):

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

10. Set the cardinality (Multiplicity) of the attributes in the comlex type:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

Created XML Schema should look like this:

/wp-content/uploads/2013/09/1_288553.jpg                      /wp-content/uploads/2013/09/1_288553.jpg

11.  Assigning Created Complex Type to Data Object (Data Object Properties):

Select the created XSD element from the drop-down list:

/wp-content/uploads/2013/09/1_288553.jpg

12.  Importing Web-Service into BPM Project:

/wp-content/uploads/2013/09/1_288553.jpg

13. Select the source of the WSDL file/service:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

14.  Successful Import:

/wp-content/uploads/2013/09/1_288553.jpg

15.  Assign the imported WSDL to the Automated Activity in the Process:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

16.  Sending an Email Notification(Through Notification Activity):

/wp-content/uploads/2013/09/1_288553.jpg

17.  Defining recipients of Email:

/wp-content/uploads/2013/09/1_288553.jpg

18. There are 2 ways to define a recipient:

i) Choosing Users from UME:

/wp-content/uploads/2013/09/1_288553.jpg

OR

ii) Writing an Expression to get user at runtime:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

19.  Defining Email Subject and Content:

/wp-content/uploads/2013/09/1_288553.jpg

20.  Using Process Context Data in Email Subject/Content:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

21.  Creating task for a User (Human Activity):

/wp-content/uploads/2013/09/1_288553.jpg

22.  Create Task for User:

Go to properties of the Human Activity and create a new Task

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

23. Importing the WDJ UI for the Created Task (Task Properties):

Click on choose and follow the steps:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

After selecting the UI technology, you will be able to see the UI in the search pane (should be present in the workspace):

/wp-content/uploads/2013/09/1_288553.jpg

24. Select the completion event and boundary event(only if required):

/wp-content/uploads/2013/09/1_288553.jpg

25.  Creating a web-service for the Start-Trigger:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

26. As the start trigger WSDl should typically be an Asynchronous one, click on the ‘Output’ tag and hit ‘Delete’:

/wp-content/uploads/2013/09/1_288553.jpg

Now, click on the Arrow on the right and enter the created XSD elements as input parameters of the start event (Also delete the Output tag from the XML source):

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

27.  Create a Trigger for the Start Event:

/wp-content/uploads/2013/09/1_288553.jpg

/wp-content/uploads/2013/09/1_288553.jpg

28.  Assign the Created WSDL to the Start-Trigger:

/wp-content/uploads/2013/09/1_288553.jpg

  Successful Assignment:

/wp-content/uploads/2013/09/1_288553.jpg

29.  Assign the created trigger to the Start Event(Properties):

/wp-content/uploads/2013/09/1_288553.jpg

Successful Assignment:

/wp-content/uploads/2013/09/1_288553.jpg

30.  Data Mapping:

Start Event to Process Context:

/wp-content/uploads/2013/09/1_288553.jpg

Process Context to Web-Service Method :

/wp-content/uploads/2013/09/1_288553.jpg

Passing Output of Web-service execution to Process Context:

/wp-content/uploads/2013/09/1_288553.jpg

These steps complete the BPM development. Now build the project to see any errors and deploy the process. Its ready to Use!

Hope this article helps. Please provide inputs if I have mentioned anything wrong.

Thanks.

Best Regards,

Siddhant

To report this post you need to login first.

20 Comments

You must be Logged on to comment or reply to a post.

      1. Rakesh Kumar Singh

        Hi Siddhant,

        Your Doc is really useful and helping. Just it would have been more helpful if i could have detailed navigation to al the screens that u mentioned, as i am totally new to BPM.

        Thanks,

        Rakesh

        (0) 
  1. Jonathan Ma

    Hi, Siddhant

    Thanks for the blog. On step 12, where do you find the wsdl file and how do you generate it?

    Regards

    Jonathan.

    (0) 

Leave a Reply