Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

You can create multiple context variables in a process flow using the PutContextVar action. Once they are created, you can use these context variables in the context of the process context as and when required.

Steps to create a Context Variable

  1. In Web Process Designer, click Repository View icon. The Repository View panel is displayed.
  2. Click Actions and select the Put-Context-Var action.
  3. Drag it to the Canvas area. The Put-Context-Var action is displayed in the Canvas area.




  4. Click Put-Context-Var action and select View Properties from context pad. The properties of the Put-Context-Var action are displayed in the Activity Properties Panel.



  5. Click the VARIABLES option. This screen displays a list of existing context variables and the option to Add the variables.



    The Edit Variable and Delete Variable buttons appear if any context variables have been created or existing context variables have been selected.
  6. To add a variable, select the name of the activity for which you want create the context variable, from the drop-down list of Activity Name. This drop-down lists all the activities that are currently present on the Canvas area. Once you select the activity, all the attributes of the selected activity, are listed in the Variable Name drop-down list.

    If the Activity Name field is left blank, then a new context variable is declared.
  7. Select the attribute for which you want to create the context variable, from the drop-down list Variable Name. For example, you can select the File Path field in case of a File Source or File Target activity.

    If the Activity Name field is blank, then the current context variables will be listed in the Variable Name drop-down list.
  8. Enter the value that you want to set for the attribute/context variable, in the Variable Value field.

  9. Click Done.This adds the context variable and takes the control back to the Edit Context Variables screen, where the new context variable is added to the list of existing context variables.


    You can add multiple context variables (up to a maximum of 100) for the process flow.
  10. Click Done on the Edit Context Variables screen to add all the displayed context variables to the context of the process flow.

    Similarly, you can edit a context variable, by selecting it from the list of existing context variables on the Edit Context Variablesscreen. This selection will enable the Edit Variable button. Clicking this button will display the Context Variable Information screen with the selected context variable details in edit mode. You can make the necessary changes and click Done to save the modified context variable.

    You can delete a context variable, by selecting it from the list of existing context variables on the Edit Context Variables screen. You can select multiple context variables to delete, by pressing <CTRL> and the context variables. This selection(s) will enable the Delete Variable button. Clicking this button will delete the selected context variable(s).

     

     Settings to View Logs for Standalone/REST(API) triggered Process Flow in Adeptia Connect Dashboard

    To View the logs in Connect Dashboard of Process Flow either triggered by REST (API) or executed standalone:

    1. Ensure that 'View Logs on Connect Dashboard' property is enabled.
    2. Set the following required parameters to view its entry in the Connect Dashboard:

       

      Context Variable NameAvailable Key on Parent ContextPossible Value
      transactionTypetransactionType500 (App)
      501 (File)
      502 (EDI)
      504 (Custom)
      templateNametemplateName 
      templateIdtemplateId 
      spokeCompanyName / partnerNamespokeCompanyName / partnerName 
      spokeCompanyIdspokeCompanyId 
      PF_ReferenceIDPF_ReferenceID 
      transactionExecutionLoggerIdparentTxnExecutionLoggerId 
      hubCompanyNamehubCompanyName 
      hubCompanyIdhubCompanyId 
      directiondirection3200 (Inbound)
      3201 (Outbound)
      3202 (VAN)

      Note

      In case any of the above parameters is not defined in Process Flow Context, and only 'View Logs on Connect Dashboard' property is enabled, the entry in the Connect Database will be blank.

     Settings to to run transaction using REST Webhook in a synchronous mode

    To run the transaction using REST Webhook in a synchronous mode:

    1. First, set the following predefined context parameters into the process flow.

      Variable NameDescriptionDefault Value
      responseThe response text to be sent as successful response 
      faultThe response text to be sent as invalid response 
      statusCodeThe HTTP status code202 for successful response 500 for invalid response
      contentTypeThe content type of responseTEXT PLAIN

       

       

    2. Send the queryParameter async into the request. The possible values for this parameter is true or false.
      When parameter value is async=false then the REST listener call will be synchronous with process flow execution, else if the parameter is not specified or is async=true, the call will be asynchronous.

     

    Note

    If no parameter is set then it is assumed it to be a fault with 500 (Internal Server Error) status code.

  • No labels