cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging EnterPrise Service in Process Instances

Former Member
0 Kudos

Hi BPM Experts.

I'm trying to debug EnterPrise Service on BPM(Process Composer).

but, NDWS's debug view is only possible to see Process Context values.

I want to check value of service interface of EnterPrise Services, before and after.

Please tell me how to do it.

Best Regards,

Yuki

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

>> I want to check value of service interface of EnterPrise Services, before and after

Do you mean you want to inspect the values of the input and output parameters of the services?

The values in the process context are the ones that are ultimately sent across as input parameters to your services. Similarly, the results of the service call are stored back into the process context. I am assuming that you have done your mapping this way.

So the process context is all you need to inspect the data. If any value is not visible, then ensure that the relevant fields are added to the process context and map them to the corresponding input/output parameters.

Former Member
0 Kudos

Hi Girish.

>>Do you mean you want to inspect the values of the input and output parameters of the services?

Yes, and thank you for your answer.

i attempt to add parameters to Process Context.

Best Regards,

Yuki

Former Member
0 Kudos

Hi Yuki,

You may map the output of a Human Activity as the input for a Automated Activity and once the Automated activity is executed it gives some output which can be mapped to another activity. This time you will get the output that are result of execution of this Automated activity. And data sharing between activities is done through a Data Object so always the values will be stored in so call Process Context (DO).

Regards,

Arafat

Former Member
0 Kudos

Hi Arafat.

thank you for your answer.

i did attempt to edit process context (XSD).

but i couldn't import process context (XSD) to ESR as Data Type.

do i have to use other XSD editter??

error message is below.

"Schema to be handled does not contain a definition of type processcontext"

xsd is below ( BPM tutorial's xsd file)

============================================================

<?xml version="1.0" encoding="UTF-8"?>

<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/approvalprocess" elementFormDefault="qualified" targetNamespace="http://www.example.org/approvalprocess">

<element name="InvestmentApprovalProcess"

type="tns:InvestmentApprovalProcess" />

<complexType name="Requester">

<sequence>

<element name="requesterName" type="string"/>

<element name="requesterCountry" type="string"/>

</sequence>

</complexType>

<complexType name="Product">

<sequence>

<element name="productDesciption" type="string"/>

<element name="productPrice" type="decimal"/>

<element name="productID" type="string"/>

<element name="productQuantity" type="decimal"/>

</sequence>

</complexType>

<complexType name="PurchaseOrder">

<sequence>

<element name="orderTotalAmount" type="decimal"/>

<element name="orderComment" type="string"/>

<element name="orderApproved" type="boolean"/>

<element name="orderID" type="string"/>

<element name="orderDate" type="date"/>

</sequence>

</complexType>

<complexType name="ApprovalInfo">

<sequence>

<element name="approverName" type="string"/>

<element name="orderApproved" type="boolean"/>

<element name="approverComment" type="string"/>

</sequence>

</complexType>

<complexType name="InvestmentApprovalProcess">

<sequence>

<element name="ApprovalInfo" type="tns:ApprovalInfo"></element>

<element name="Product" type="tns:Product"></element>

<element name="PurchaseOrder" type="tns:PurchaseOrder"></element>

<element name="Requester" type="tns:Requester"></element>

</sequence>

</complexType>

</schema>

============================================================

Best Regards,

Yuki

Former Member
0 Kudos

Hi yuki,

You dont need to edit the XSD file as it is automatically generated in case you map a task and create a Data Object with the type as Context of any task UI. If you create a new Service Interface than also when you define the SI structure using graphical tool then also the XSD is generated automatically. You can refer to the BPM troubleshooting guide:

https://wiki.sdn.sap.com/wiki/display/BPMT/Ihaveaproblemmodelingmyprocess

Below is the sample xsd Schema that is generated automatically:


<xsd:element name="Dropdown1" minOccurs="0" maxOccurs="unbounded">

<xsd:complexType>


<xsd:annotation>

<xsd:appinfo>

<xsd:attribute name="MappingPath" type="xsd:string" fixed=""/>

<xsd:attribute name="MappingType" type="xsd:string" fixed=""/>

<xsd:attribute name="Singleton" type="xsd:boolean" fixed="true"/>

<xsd:attribute name="InitializeLeadSelection" type="xsd:boolean" fixed="true"/>

<xsd:attribute name="QuickInfo" type="xsd:string" fixed=""/>

<xsd:attribute name="TechnicalDocumentation" type="xsd:string" fixed=""/>

</xsd:appinfo>

</xsd:annotation>


<xsd:sequence>



<!-- modeled attributes of Dropdown1 -->


<xsd:element name="Name" type="com.sap.dictionary.string">

<xsd:annotation>

<xsd:appinfo>

<xsd:attribute name="ReadOnly" type="xsd:boolean" fixed="false"/>

</xsd:appinfo>

</xsd:annotation>

</xsd:element>


<xsd:element name="Code" type="com.sap.dictionary.string">

<xsd:annotation>

<xsd:appinfo>

<xsd:attribute name="ReadOnly" type="xsd:boolean" fixed="false"/>

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

Regards,

Arafat

Former Member
0 Kudos

Hi Arafat,

Thank you for your help!

I have investigated the ES problem with Process Context.

I have more question.

when i didn't connect "Association's Link" between Automatic Task and Process Context(Data Object),

Process Error has occurred at Automatic Task.

Do I must connect "Association's Link" between Automatic Task and Process Context(Data Object) ??

Regards,

Yuki

Former Member
0 Kudos

Hi Yuki,

Data connection between the DO and the activities are for data sharing prpose i.e so that daa is saved in process context. I dont think that you should be getting an error without mapping this between ES and DO. Only issue that you may have if you dont do the mapping is that the data will not be there in the process context.

Hope this helps!!

Cheers,

Arafat

Former Member
0 Kudos

Hi Arafat,

Thank you for your help!!

Regards,

Yuki