Skip navigation
Currently Being Moderated

Invoking a LiveCycle process with multiple input variables using REST

May 9, 2012 9:59 AM

Tags: #livecycle #rest #designer #process #invoke

Hi all,

 

A simple scenario brushup:

 

I have an LC process that takes as input 2 parameters:

 

- formID

- formXML

 

The user starts out with an empty interactive form and fills out some info in this form. In the end he/she clicks submit and now I want to invoke my process to create a flattened form from the XML just entered in the interactive form.

 

The process returns a flattened form with the data merged with the XDP template referenced in formID. Simple as that.

 

What I basically need is to do something similar to the following in a LiveCycle Designer Form:

 

 

------------------------------------Snippet from http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e1 2e69a9941333732bac8-7fe5.html ---------------------------------------------------------------------

<html>

<body>

 

<form name="input" action="http://localhost:9080/rest/services/RestTest3" method="post" 

         enctype="multipart/form-data">

 

Doc: <input type="file" name="inDoc">

String 1: <input type="text" name="inListOfStrings" value="hello">

String 2: <input type="text" name="inListOfStrings" value="privet">

<input type="submit" value="Submit"/>

 

</form>

 

</body>

</html>

 

------------------------------------End snippet from http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e1 2e69a9941333732bac8-7fe5.html ---------------------------------------------------------------------

 

 

Now my question to you is (hope you can help out here):

 

How do I invoke this process from my form using the REST endpoint - I need to specify 2 input variables for my process. One string (formID) and some xml (formXML). How is this done in Designer?

 

Thanks in advance

 

Kim Christensen

Dafolo A/S

Denmark

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points