cancel
Showing results for 
Search instead for 
Did you mean: 

BPM-API and generic task completion

Former Member
0 Kudos

Hi experts,

I want to write an application that allows you to work on different tasks. The problem is that these tasks could include various input and output data. How can I resolve this DataObjects generic and receive all relevant information such as data type, value and name? How is that when the data are nested? You can also then resolve the structure and if so how?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

stefan_henke
Contributor
0 Kudos

Hi,

yes, you can do so. The interface common.sdo.DataObject provides methods to introspect the structure and determine the type of the properties. You might take a look at the RESTful service for the BPM API I published on CodeExchange:

Looking at the code in the repository you will definitely samples on how this can be achieved.

Hope this help you to start on what you are trying to achieve.

best regards,

Stefan

Former Member
0 Kudos

Hi Stefan,

thanks for your answer. I joined your project and got the sourcecode. This project is very extensive and i have to working on to understand the complete context.

Best regards

Johannes

stefan_henke
Contributor
0 Kudos

Hi Johannes,

you can specifically take a look into the class DataObjectTypeAdapter. It is querying information from a DataObject in a generic fashion by using the SDO API. You can find the class here:

https://code.sdn.sap.com/code/bpm-rest-api/subversion/nodes/trunk/BPEM-RESTSVC/demo.sap.com/tc/bpem/...

Best regards,

Stefan

Former Member
0 Kudos

Hi Stefan,

thank you for helping me. Is there any documentation?

Best regards

Johannes

Answers (0)