KrewData Features > Real Time Execution > Executing Execution Unit |
Now, let us run the execution unit we have created. There are following two ways to run the execution unit.
Data editing flow added to execution unit can be executed manually(Manual execution) from Flow Setting page.
To be able to run the execution unit, you need to set a login ID and password of the kintone environment.
|
To set up the kintone account, select the User Information option from menu in left side of the File tab.
If kintone account has not been configured at the time of executing the data editing flow, or while setting up the execution unit, the User Information page gets displayed and you are asked to set up the kintone account.
After filling in the user information, click the Check Account button to verify that the user information you entered is correct.
After verifying that the user information is correct, click Update App to save the user information.
Validity of kintone account set in user information is as follows.
|
To run a data editing flow in a kintone environment with IP address restrictions, you must fill in information in Basic Authentication Setting or Secure Access Setting section depending on your environment settings.
Depending on the IP address restrictions and availability of Basic authentication or secure access settings, the data editing flow may or may not be executed. For more details, see Environment with IP Address Restrictions.
Settings required for running the execution unit through Webhook are as follows:
Update your app by checking ON the checkbox in Enabled column of the execution unit. This enables the URL and allows real time execution. When the checkbox is in OFF state, webhook notifications from the kintone app fail and the execution unit is not executed.
Settings required to run the execution unit through API are as follows:
Update your app by checking ON the checkbox in Enabled column of the execution unit. This enables the URL and allows real time execution. When the checkbox is in OFF state, API request fails and the execution unit is not executed.
Each data editing flow that is added to an execution unit can also be executed standalone manually by clicking the Run button of flow creation area.
To run a data editing flow for testing purpose while creating it, you can set any tentative values in parameters and confirm the result in Preview tab by executing the flow.
1. Click the Set Parameter icon in the upper right corner of the Flow Setting page to open the Parameter Setting for Manual Execution page.
2. On the parameter settings page, select the fields to set parameters at the time of manual execution and set their values.
Tentative values of parameters set on the Parameter Setting for Manual Execution page are applied only during preview and manual execution (by pressing Run button in the upper right corner of the page), and is not valid when called from Webhook or API. |
Real time execution locks all the data editing flows contained in an execution unit at run time and prevents calls to that execution unit by other real time executions.
When performing real time execution through Webhook or execution API, if error occurs due to exclusive control, timeout, or any other reason, the data editing flow is not executed and records are not added or updated to the output app.