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

Discussion

Discussion

Triggering a Workflow via Web Services

posted on December 29, 2014

Hello,

Is it possible for a third party process to initiate a workflow (via the WF Web API) and pass it a string?

-Ben

0 0
replied on February 5, 2015

Hi Guys,

 

Between the two of you (and Miruna), my question has been answered. Thanks!

 

 

0 0
replied on July 8, 2020

I have literally never seen nor can I imagine a more substandard set of documents than the ones I have encountered regarding the web service API.

1 0
replied on January 23, 2015

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

 

0 0
replied on January 14, 2015

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.

1 0
replied on December 31, 2014

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. 

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

Sign in to reply to this post.