Table of Contents

Search

  1. Preface
  2. Overview, Downloading, and Installing
  3. Administration API
  4. Identity Service API
  5. Screenflow Programming and SDK
  6. ActiveVOS WSHT API
  7. Embedding Request Forms in Standalone Web Pages
  8. XML-JSON for Process Central

APIs, SDKs, and Services

APIs, SDKs, and Services

Getting Task Input and Output Data

Getting Task Input and Output Data

Most of task specific operations such as claim, start, stop etc. are simple and they require only the task id element. You may refer to the WSHT documentation and
ws-humantask-api.wsdl
for further details.
The
getInput
,
getOutput
, and
setOutput
operations require the task ID as well as the input (output) part name. For example, the
humantaskdemo.wsdl approveLoanWshtPT
port type
approveLoan
operation is described as follows:
<portType name="approveLoanWshtPT"> <operation name="approveLoan"> <input message="tns:WshtLoanInput" /> <output message="tns:WshtLoanOutput" /> </operation> </portType>
Note
: The above shows the port type for the Human Task used by the People Activity (which is not the same as the port type used by the
humantaskdemo
BPEL process).
The input message is defined as:
<message name="WshtLoanInput"> <part name="request" element="loan:loanProcessRequest" /> </message>
Note the message part name is
request
. The message part name is included in the WSHT API
getInput
message:
<htdt:getInput xmlns:htdt="http://www.example.org/WS-HT/api/xsd"> <htdt:identifier>urn:b4p:5</htdt:identifier> <htdt:part>request</htdt:part> </htdt:getInput>
Similarly, the output message part is named
response
:
<message name="WshtLoanOutput"> <part name="response" element="loan:loanApprovalResponse" /> </message>
The
getOuput
is:
<htdt:getOutput xmlns:htdt="http://www.example.org/WS-HT/api/xsd"> <htdt:identifier>urn:b4p:5</htdt:identifier> <htdt:part>response</htdt:part> </htdt:getOutInput>
The
setOutput
has an additional element
<htdt:taskData>
which contains the output message part element. For example:
<htdt:setOutput xmlns:htdt="http://www.example.org/WS-HT/api/xsd"> <htdt:identifier>urn:b4p:5</htdt:identifier> <htdt:part>response</htdt:part> <htdt:taskData> <!-- loanApprovalResponse element (output) --> <loan:loanApprovalResponse xmlns:loan= "http://schemas.active-endpoints.com/sample/LoanRequest/2008/02/loanRequest.xsd"> <loan:responseToLoanRequest>approved</loan:responseToLoanRequest> <loan:responseDescription>Your loan has been approved.</loan:responseDescription> </loan:loanApprovalResponse> </htdt:taskData> </htdt:setOutInput>

0 COMMENTS

We’d like to hear from you!