[IM-Workflow] How can I check which route definitions use a template replacement route?

 
IM-Workflow's standard product function does not include a function to check route definitions that use template replacement.

It is possible to check which route definitions are using template replacement route by using product API and implementing processes.

RouteDataManager is provided as an API for managing route definition information.
The following is an example of the process for acquireing the route IDs used in template replacement.

* Process Flow

1) Acquire the list of routes
 Use an API such as RouteDataManager#getRouteDataListWithAccessAuth() to acquire the list of routes.

2) Identify routes that use template replacement
 Follow the steps below to check the template replacement nodes for each acquired route.

 1. RouteDataManager#getRouteDetailDataListFamilyWithLocale()
  -> Acquire RouteDetailDataModel

 2. RouteDetailDataModel#getRouteXmlFile()
  -> Acquire RouteFileModel

 3. RouteFileModel#getNodes()
  -> Acquire RouteNodeFileModel

 4. If RouteNodeFileModel#getNodeType() returns nodeTyp_Template:
  Template replacement node
  RouteNodeFileModel#getRouteTemplateId()
  -> Acquire  the route ID of the template replacement embedded in the parent route.

For details about these APIs, please refer to the API reference below.

* API
 Script development
 http://www.intra-mart.jp/apidoc/iap/apilist-ssjs/doc/im_workflow/RouteDataManager/index.html
 Java development
 http://www.intra-mart.jp/apidoc/iap/javadoc/im_workflow_apidocs/jp/co/intra_mart/foundation/workflow/administrator/RouteDataManager.html

--Target-------------------------------------------------------------------------
iAP/Accel Platform/All Updates
--------------------------------------------------------------------------------


FAQID:1495
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk