You are viewing limited content. For full access, please sign in.

Question

Question

Input Parameters not going to Workflow from Web Service

asked on November 30, 2015 Show version history

Hello,

Referring to the Whitepaper Workflow 9.0 Consuming the Workflow Web Services.pdf (attached).

The Workflow is successfully invoked by the web service. However, the input parameters as defined by the sample below are not brought into the Workflow.

Workflow Designer version: 9.2.1.239

Please advise. Thanks.




 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:las="http://schemas.datacontract.org/2004/07/Laserfiche.Workflow.ComponentModel.DataContracts.Creation" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<tem:CreateWorkflowInstance>
<!--Optional:-->
<tem:workflowName>RCSTREAM - WF1 - Jose test</tem:workflowName>
<!--Optional:-->
<tem:parameters>
<!--Optional:-->
<las:Initiator>
<las:InitiatorDisplayName>rcistreamdev</las:InitiatorDisplayName>
<!--Optional:-->
<las:InitiatorName>ricohcanada\rcistreamdev</las:InitiatorName>
</las:Initiator>
<las:RuleName>StartingRule</las:RuleName>

<las:ParameterCollection>
<las:InstanceParameterData>
<las:Name>CUSTOMER_NAME</las:Name>
<las:Value>John</las:Value>
</las:InstanceParameterData>
<las:InstanceParameterData>
<las:Name>SFDC_OBJECT_ID</las:Name>
<las:Value>1</las:Value>
</las:InstanceParameterData>
<las:InstanceParameterData>
<las:Name>CUSTOMER_ADDRESS</las:Name>
<las:Value>Test Address</las:Value>
</las:InstanceParameterData>
</las:ParameterCollection>

<las:WorkflowName>RCSTREAM - WF1 - Jose test</las:WorkflowName>
<!--Optional:-->

</tem:parameters>
</tem:CreateWorkflowInstance>
</soapenv:Body>
</soapenv:Envelope>

 

0 0

Answer

APPROVED ANSWER
replied on December 2, 2015

Your XML is not being generated quite right for the parameters.

<las:ParameterCollection> has to appear before RuleName and your parameters need to look more like:

<las:InstanceParameterData>
<las:Name>CUSTOMER_NAME</las:Name>
<las:Value xsi:type="xsd:string">John</las:Value>
</las:InstanceParameterData>

and add 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 

 

 

0 0

Replies

replied on December 3, 2015

Thanks Ed.  Tested and working.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.