Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In a typical scenario of a data transaction, the data is transferred from source to target. However, in some cases a Company or Partner may need to further process the data received at the target location. For further processing of this already processed data, you would use post processing Transaction. 

...

Creating a Post Process Template Using a Process Flow 

Prerequisites

Ensure that you have published For using Process Flow in Adeptia Connect, created in a Template, first create a Process Flow in the Developer's Studio. While creating a Process Flow, in the Process Designer, write the following script in the Service exception field under the OnException Scripts tab.  

Image Added

import org.apache.commons.lang.exception.ExceptionUtils;
Throwable rootCause = ExceptionUtils.getRootCause(exception);
String exceptionMessage = null;
if(rootCause == null)
exceptionMessage = exception.getMessage();
else
exceptionMessage = rootCause.getMessage();

context.put("subprocess_code", "ERROR_IN_CHILD_FLOW");
context.put("subprocess_text", exceptionMessage);

After you have created a Process Flow, publish it in Adeptia Connect.

If your published Process Flow is using further calling a Process Flow or Transaction, you need to to write the JavaScript in the custom plugin.    To create

Once done, start creating a Template:.  

  1. Go to Configure > Templates > Create Template. The following are the high-level steps that you need to select while creating a Template. For detailed instructions, click /wiki/spaces/AC2/pages/655640.
  2. Select either File or App from the Template Type drop-down list.
  3. Select Inbound in the Select direction drop-down list. 
  4. Select the application from the list while defining the Source application.
  5. Define the source data format for a Template.
  6. Select the event to be triggered.
  7. Select the source layout and format of a Template.
  8. Select Post Process app while defining the Target application.



  9. Select Process Flow from the Select Process Type drop-down list.
  10. Select the process flow from the Select Process Flow drop-down list. Only published process flow will be populated in the drop-down list.
  11. Click Add Parameters to add parameters. Define the keys and their values. The specified values will be put in the context of the child flow. 



  12. Define the target data format and layout.
  13. Define the mapping between the fields.
  14. Click Save and Exit to save the Template.

...