Saturday, January 10, 2015

How To Start a Case in Oracle Adaptive Case Management 12c

Blog reader was asking to describe how to start a new case in Oracle ACM 12c. You can read my previous blog post on ACM 12c topic - Adaptive Case Management 12c and ADF Human Tasks. There are multiple ways to start a case, depends if you want just to test the case or really use it. I would recommend to use SoapUI to test the case. In the real scenario, case most likely will be started from third party web service or through ACM 12c Java API. Here I would like to describe, how you could use SoapUI to test ACM process during development.

Once ACM 12c application is deployed, you could open it in EM. There is the option to test deployed composite and invoke it through EM Web Service tester. In the example below you can see startCase operation selected and payload structure displayed. Unfortunately it doesn't work well to test ACM process through EM, payload structure is very confusing and it usually fails with mandatory attributes missing errors:

Instead I would recommend to use SoapUI to test the ACM 12c composite. You could download and use it free of charge. Start the tool and choose to create New SOAP Project:

We need WSDL URL to define a SOAP project in SoapUI. You can copy WSDL URL from EM test screen:

Paste it into SoapUI dialog (Initial WSDL field) and Project Name will be filled in automatically (keep Create sample requests for all operations? option selected):

SoapUI will fetch all operations from the service and new SoapUI project will be generated:

In order to start a new case, expand startCase operation and open Request 1. Request will be pre-filled with default payload structure (similar as we saw in EM):

Save SoapUI project, before doing any changes to the request structure. I would suggest to save it under ACM JDEV application structure - project is saved into single XML file:

Change the request to include custom data payload (you can find this XML code inside sample application available for download) and invoke the service. If request will be successful, you should see case number returned in the response:

Case with the same number should be available in BPM Workspace:

Here you can download sample application with SoapUI project (XML file) included -


Srikant Vaidya said...

How to manipulate the permission for a stakeholder added during the run-time in a case. I have a requirement where I need to force the stakeholder to do a particular case activity before he/she can access to other case activities.
Appreciate your help.

Benjamin said...

Hi Andrejus,

big big thx for your blog, helped me a lot on the work with Oracle ACM which i am investigating in my diploma thesis.
Finally managed to start a case via SoapUI, but my tasks or activities are always shown as incorrect or faulty in the case view of business process workspace.

I made the Hello World example shown in this blog.

Would appreciate your help a lot.

Best wishes,