Hello,
Is it possible for a third party process to initiate a workflow (via the WF Web API) and pass it a string?
-Ben
Hello,
Is it possible for a third party process to initiate a workflow (via the WF Web API) and pass it a string?
-Ben
Hi Kathryn and Ed,
Thanks for the pointers, I managed to get the workflow to invoke via web call.
I've had some issues with the dateTime data type though.
To test the Workflow REST POST call, I'm using the "HTTP Form Post" activity. Yep, I'm using Workflow to call Workflow via Workflow API. Well, It's convenient at least!
I have a dateTime data type that gives me 400 error. It works fine if I change it to a string type:
<InstanceCreationData xmlns="http://schemas.datacontract.org/2004/07/Laserfiche.Workflow.ComponentModel.DataContracts.Creation"> <Initiator> <InitiatorDisplayName>capitalControl</InitiatorDisplayName> <InitiatorName>capitalControl</InitiatorName> <OtherProperties> </OtherProperties> </Initiator> <InstanceCreationFlags>None</InstanceCreationFlags> <Origin>String content</Origin> <Originator>String content</Originator> <ParameterCollection> <InstanceParameterData> <IsDebug>false</IsDebug> <Name>QUOTEDATE</Name> <Value xmlns:d10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:type="d10:ArrayOfdateTime" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <d10:dateTime>01/01/2015</d10:dateTime> </Value> </InstanceParameterData> </ParameterCollection> <Timestamp>1999-05-31T11:20:00</Timestamp> <WorkflowName>APITest</WorkflowName> </InstanceCreationData>
I'm using the Empower15 VM (copied from a Laserfiche USB at the conference) and haven't applied any patches. That should help you work out the versions of the LF and Windows components installed.
Also, could you tell me what the IsDebug tag is used for and is it something I could use (or just internal)?
-Ben
If you visit http://localhost/Workflow/api/help/operations/CreateInstance of your workflow server you should see some 'built in' documentation on the create instance operation as well.
Hello Ben,
This is possible through Workflow Web Service! The white paper, Workflow 9.0: Consuming the
Workflow Web Service, details how to set this up as well as the functionality available.