Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

abx:getCatalogResource(location)

abx:getCatalogResource(location)

Returns the document containing the resource content. The location is the string containing the catalog location URL. The example below returns the element or document that was stored using
putCatalogResource()
, by the location. You can use this function in a copy operation to assign the element back to a variable, for example.
If the request header uses
application/json
or the resources ends with
.tojson
(for example,
/avccatalog/project:/path/mydoc.xml.tojson
), you do not have to write a process to proxy the request if the endpoint is
/avccatalog
. Also, if the request header has
application/json
, you do not have to write a proxy if the endpoint is
/catalog
.
Example:
abx:getCatalogResource("project:/myProject/resources/resource.xml")
In a copy operation, an example of copying From this function (to a variable) is as follows. Note that the expression language is XQuery.
<ns1:catalogEntry xmlns:ns1='http://activevos/samples/catalog/functions'> <ns1:catalogLocation> <ns1:location>{data( $requestOperation.catalogOp/ ns1:catalogLocation/ns1:location ) }</ns1:location> <ns1:typeURI>{data( $requestOperation.catalogOp/ ns1:catalogLocation/ns1:typeURI )}</ns1:typeURI> </ns1:catalogLocation> <ns1:content>{abx:getCatalogResource( data( $requestOperation.catalogOp/ns1: catalogLocation/ns1:location))}</ns1:content> </ns1:catalogEntry>

0 COMMENTS

We’d like to hear from you!