KrewData Features > Real Time Execution > Create and Manage Execution Units |
Real time execution allows multiple data editing flows to be executed sequentially through a webhook notification or API call. This allows you to execute the associated data editing flows through a single user action.
An "execution unit" refers to a unit consisting of multiple data editing flows which can be executed using one call. One real time execution is set for each kintone app that is called (kintone app: krewData execution unit = 1:1).
To create an execution unit, open Real Time Execution tab of the Plug-in Settings page. Once an execution unit is created, you can do various operations in the list such as editing, cloning and deleting the units.
Item | Description | ||
---|---|---|---|
① Add Execution Unit button | Creates a new execution unit on clicking Add Execution Unit button. | ||
② Registered flows for real time execution in your domain |
Indicates the total number of real time execution flows allowed by license and the number of flows in use. You can view the list of execution units and real time execution flows by clicking the Detail button.
|
||
③ List of execution units | Displays the list of created execution units with options to edit, clone or delete them. |
Data editing flows for real time execution can be created in the bottom section of Real Time Execution tab. Various operations can be performed on flows that are created such as editing, cloning, deletion etc.
Item | Description |
---|---|
④ Add Data Editing Flow button | Creates a new data editing flow on clicking Add Data Editing Flow button. |
⑤ Use Flow of Schedule Execution | Allows you to browse and add a data editing flow created in the Schedule Execution tab to execution unit by clicking . The data editing flow added by browsing cannot be edited in the Real Time Execution tab. |
⑥ Copy Flow | Allows you to copy data editing flow from an execution unit or Schedule Execution tab to the execution unit being edited by clicking . |
⑦ List of data editing flows | Displays list of created data editing flows and allows you to perform operations such as re-ordering, editing, cloning and deletion of flows. |
Following are the steps to create execution units:
The log output app records the output of real time execution every time an execution unit is executed through Webhook or API call. Default log output app must be set before creating the execution unit.
(1) Click the Select App button of Default Log Output App on top right of the page.
(2) In Select App dialog, click Create New Log Output App and enter any app name to create a new log output app.
(3) Confirm that log output app created in the above step is selected and click OK.
|
|
Execution Unit to execute data editing flows through Webhook notification or API can be created using "1. Execution Unit" located in upper part of the page.
(1) Add a new execution unit by clicking Add Execution Unit button of the list.
(2) Set each item of the list.
Item | Description |
---|---|
Rearrange icon | You can drag to rearrange the data editing flow. |
Execution Unit | Displays name of the execution unit. You can click to rename. |
Enable | Displays the checkbox which in On state indicates that URL is published and real time execution is enabled. When checkbox is in Off state, the URL gets disabled and real time execution is not performed. |
State |
Shows the result of last execution. :Success :Fail |
Calling App | Allows to select input app (source app of Webhook notification or API call for recording information) to be used as parameter of real time execution. |
Execution Method | Displays method for executing the execution unit. Click the icon to select the execution method (either Webhook or API) and to regenerate the URL. |
Log Output App | Click icon of column header to set the default log output app. If app name link is clicked after setting up, selected log output app gets displayed. In newly created execution units, default log output app that was set in column header is automatically set. To output the execution logs to an app other than default log output app, click to select another log output app. Selected log output app gets displayed on clicking the link of app name. |
Update DateTime | Displays the date and time of last update in execution unit. |
Delete icon | Deletes the execution unit. |
Clone icon | Clones the execution unit. |
Data editing flows placed in execution units can be created in "2. Data Editing Flow" located in lower part of the page.
(1) Add a new data editing flow in execution unit by clicking the Add Data Editing Flow button of the list.
(2) Set each item of the list.
Item | Description |
---|---|
Execution order | When execution unit is executed, order of executing the data editing flows is displayed. When multiple data editing flows are placed, you can drag icon located on left hand side of the list to change the execution order. |
Setting icon | Navigates to the Flow Setting tab to configure the data editing flow. |
Data Editing Flow | Displays name of the data editing flow. You can click to rename the data editing flow. |
Enable | Displays the checkbox which in On state indicates that data editing flow is executed during real time execution. When checkbox is in Off state, data editing flow is not executed even if execution unit is executed. |
State |
Shows the result of latest execution. :Success |
Start Time | Displays the start time of previous execution. |
End Time | Displays the end time of previous execution. |
Update DateTime | Displays the date and time of last update in data editing flow. |
Delete icon | Deletes the data editing flow. |
Clone icon | Clones the data editing flow. |