Process Overview

A Process is an execution flow of services and logic defined by the user. The flow is directed from Start to Terminate by connecting directional lines to services along with other process flow elements, such as a binary decision, which may cause the logic to branch off into a different flow based on some criteria. The end result looks like a flowchart and it visually represents the logic to be used in various scenarios.

There are different types of processes as well: (Note: The main difference of the types of processes are what triggers the process to occur and how they are used)

  • Stand alone process
  • Can be called from another process by its Process Id
  • Can be scheduled as a window's task to run on a schedule.
  • Ex: Every day, run a process that sends the admin an email with details on who has completed a registration request and requires action for a user to be created for the site.
  • Button Process
  • Process is triggered when a button in a webpart is clicked
  • There are also processes that can be attached to other input fields such as a Drop Down List or Textbox as long as you turn Auto Post Back on for that field. (Allows the page to post and triggers the process).
  • Ex: A save button on a form would collect the user entered information and save it into the database.
  • Process Datasource
  • Process which defines data for a datasource. This can be one node of the process mapped to one field or it can be many nodes mapped to a list section of fields.
  • Ex: This is the logic that could determine what text should show to the user in a drop down list. What values does each option in the drop down list have associated to it (different from the descriptive text the user sees)?
  • On-Load Process (Web part and section)
  • Triggered each time the Web part or section is loaded.
  • These types of processes are only recommended for use in a list section. All other uses (regular sections, web parts) are deprecated. This is because often the logic you need to accomplish in a regular section or Web Part onload, could be done in a process Data Source to consolidate queries.
  • If this is used for a list section (which can display many times, once for each record to display in the list), the onload runs once for each record in the list section.
  • Ex: If there were a grid (list section) which listed all the past orders the user has placed, an onload process could look at each order (list section record) and calculate the order total based on the items within the order. The process would run once for each order(record in the list).
  • Use list section onloads cautiously. Queries should pose no issue, but if there are many unions, a query could become slow. JDE Business Functions should also never be placed in onloads as the run time for the web part could be drastically increased. If a list section on-load takes as long as 1 second, the list section will take 10 seconds to load for 10 records.
  • On-Pre-Render Process (Web Part and section)
  • Same as On-Load but executed after On-Load
  • The use of these processes is not recommended. Although some may still appear in older webparts, this feature is deprecated.

Process Home (Work with Processes)

1) Process List

This lists all Processes that exist in the Application. The list can be filtered with the lookup textbox and “Find” button. This can be used to search by ProcessId, ProcessName, and ProcessDescription. Click the “Refresh Data” to undo any filtered searches and return to the full process list. One or multiple processes can be selected at once with the use of the “Ctrl” and “Shift” keys.

2) General Process Actions

Design New Process - Used to create a new process. This selects the next available ProcessId and allows the user to type a Name and Description.

Build All Processes - Build all Processes that exist. This can take very long depending on how many processes exist.

3) Selected Process Actions

Design - Open the selected Process. Only one process can be selected.

Edit Name/Desc. - Edit the Name or Description of a Process without opening it. Only one process can be selected.

Duplicate - Duplicate the selected Process. The duplicate will be assigned the next available ProcessId, the Description will be identical to the original, and the Name will be the original name with a “ - Copy” appended.

Build - Builds the selected Process(es). One or multiple processes can be built. If many are selected, it may take very long. After the building is done, a message displays the ProcessIds the action was performed on. This can be used to verify the full list of many Processes were correctly selected.

View Logs - This opens an Application Logs page for the selected process. Only one process can be selected. Logs are generated when logs are on and the process is run.

Run - This opens a new window to enter input for the selected process and run it with that input. When it is complete, it shows the output logs. The input must already be defined in the process. This is something the developer would do when creating the process. This allows the input xml to match expected input and produce useable tests.

Deploy - This deploys the selected process as either a Scheduled Job (in Windows Task Scheduler) or a REST/SOAP API. Only one process can be selected to deploy.