Webservices Connector Issue

1
0
-1

Hello,

I am using a webservices connector to create an ID from a token which is generated automatically when i execute the connector. I pass the following variables in the envelope.
I have the following information in the envelope.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
      <requestStdCRCreationById>
         <requestor type="xsd:string">${ requestor }</requestor>
         <origin type="xsd:string">bonita</origin>
         <key type="xsd:string">${ processInstanceId }</key>
         <stdchangeid type="xsd:integer">12102</stdchangeid>
         <goal type="xsd:string">${ goal }</goal>
         <specification type="xsd:string">${ specification }</specification>
         <reason type="xsd:string">${ reason }</reason>
         <reference type="xsd:string">${ processInstanceId.toString }</reference>
      </requestStdCRCreationById>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I am able to generate the token which in turn creates a Unique Id.
Now the main issue is, eventhough the values are generated and the variables store the values, the final result i get is only this ${ goal }. Generally if the value of goal is 'test123', then that value should have been passed to the variable. I would have expected to see 'test123' instead of ${goal} inside the envelope.

Can anyone explain whats wrong or am i missing something.
Appreciate your help.

Regards,
Sanjeev

Comments

Submitted by antoine.mottier on Thu, 07/20/2017 - 16:40

Does this apply only to the goal variable or also to processInstanceId?

Submitted by sanjeev.balasub... on Fri, 07/21/2017 - 08:33

Hi Antoine,

It happens will all the fields. I gave goal as an example.
When i see the case variables in the admin portal , all these variables have values stored. So i am not sure where the problem is.

Regards,
Sanjeev

1 answer

1
0
-1

I did a test with a basic process that call a public weather web service on case instantiation and use a process variable initialized with process instantiation contract. In the web service HTTP request I can actually see the value I input in the instantiation form. So everything seems just fine.

You can download my example to maybe find out in which way yours is different.

Also you might want to share your process as a .bos file so I can take a look at it.

Comments

Submitted by sanjeev.balasub... on Mon, 07/24/2017 - 15:18

Hi Antoine,

I am not able to import your example since i use version 7.1 Teamwork edition. Not able to import a process from a higher version 7.5.2. Also would it be possible if the same example is done in version 7.1 so that i can download it?
Could you give me a location where i can share my process so that you can have a look?

Regards,
Sanjeev

Submitted by antoine.mottier on Mon, 07/24/2017 - 18:24
Submitted by sanjeev.balasub... on Wed, 07/26/2017 - 15:21

Hi Antoine,

Thanks for the test version. I tried making a few changes but it's still the same.
Is it possible if i can share my original process so that you can have a look at it ?

Regards
Sanjeev

Submitted by antoine.mottier on Thu, 07/27/2017 - 09:09

Yes feel free to share your process .bos file and I can take a look at it.

Submitted by sanjeev.balasub... on Fri, 07/28/2017 - 09:22

Hi Antoine,

Here is the original process : https://www.dropbox.com/s/1xef6m6jhqfbvw2/CreateJIRAProjectWithCR-1.1.4....

Regards,
Sanjeev

Submitted by sanjeev.balasub... on Tue, 08/01/2017 - 11:24

Hi Antoine,

Any luck on this issue?

Regards,
Sanjeev

Submitted by antoine.mottier on Tue, 08/01/2017 - 13:59

Actually it seems to be an issue with the injection of at least the process instance variable. The workaround is to click on "Switch editor..." link below envelope definition and use define your envelope as a GString using triple double quotes and convert it to String.

Submitted by sanjeev.balasub... on Tue, 08/08/2017 - 12:42

Hi Antoine,

I tried using this and it seemed to work. The details are coming now.
I think there seemed to be a problem with unexpected characters like : and - which were passed into the variables and hence the envelope was giving an error while showing the output.
Thanks for your help.

Regards,
Sanjeev

Notifications