This section covers importing and exporting rules.

Examine the Rule to be exported

Before exporting a rule make sure to have the following properties

PropertiesExamples
Rule TypeSQL, C#, Decision...
Rule UsageBusiness Constraint, General, Capture...
Default ParametersText, Url, Date...
Default Parameter BehaviorInput, Output, Place Holder...

In order to get the stated information from a rule, click on the edit button

As an example consider the rule delete_root_Client
 

The default parameter information can be found in the detail section of the rule, under the tab Paramaters

Step 1 - Export the Rule

  1. In AppStudio, locate the Business Rules section and select Rules
  2. Click on the Import/Export and select export

     
  3. The browser should automatically start the download. Remember the location that Rule was stored.

Step 2 - Import the Rule

  1. Navigate to a new solution where you wish to import the rules.
  2. Go to the rules section and click on the import/export button and choose import
     
  3. AppStudio will navigate to the Rule Up-loader page.
  4. Use the Archive File to find the rule to upload.
  5. Choose the appropriate properties for the rule (discussed in the beginning of the section)
  6. Click on the Preview button to see what rules will be uploaded and if there is any conflict. If a similar rule exists it be can be overwritten if needed
  7. After choosing the desired Rule(s) click on import
  8. After the selected rules have been imported, the Journal tab will be enabled and give the status of the rules
  9. Deploy the solution
  • No labels