Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ppe with decisions #3

Merged
merged 3 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated step6
  • Loading branch information
swatimaste00 committed Nov 22, 2023
commit 5950ec7d3015479c33b30561b43e421fd36bc333
2 changes: 1 addition & 1 deletion Code/AWS/appConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"SAP_AEM_REST_URL": "<your_aem_rest_url>"
},
"s3":{
"bucketname": "<your_bucket_name>",
"bucketname": "<your_S3_bucket_name>",
"camera": "CAM-01",
"location": "CB-FL-001",
"plant": "1710"
Expand Down
45 changes: 30 additions & 15 deletions Documentation/Step6-Configure-Decisions-Part1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
## Create SAP Build Process Automation - Decisions Project
In this section, you will configure SAP Business Rule project which will be used to determine which business action should be executed for an event. Additionally, based on your scenario you can create decision tables and business rules.
In this section, you will configure SAP Build Process Automation project where a Decision will be used to determine which business action should be executed for an event. You will also configure a decision table in the decision project.

### 1. Create SAP Build Process Automation Project

Expand All @@ -11,13 +10,15 @@ In this section, you will configure SAP Business Rule project which will be used

![plot](./images/lobby.png)

3. Choose the **Build an Automated Process Tile**, and then choose **Business Process** Tile.
3. Choose the **Build an Automated Process Tile**

![plot](./images/automatedprocess.png)

Now choose **Business Process** Tile.

![plot](./images/process.png)

4. Fill the project name as **Events-to-Business-Actions-Framework-xxx** and Choose **Create**
4. Fill the project name as **Events-to-Business-Actions-Framework** and Choose **Create**

![plot](./images/createproject.png)

Expand Down Expand Up @@ -45,7 +46,7 @@ In this section, you will configure SAP Business Rule project which will be used

1. The **Decision** configuration requires the **Input and Ouput parameters** as well as the business **Rule** that maps the incoming event to it's associated business action. To configure the Input/Output parameters we need to create the Custom Data Type with the fields that the incoming event payload contains.

Under the**Artifacts** Tab, Click on **Create** and choose **Data Types**.
Navigate to **Overview** Tab. Under the **Artifacts** Tab, Click on **Create** and choose **Data Type**.

![plot](./images/CreateDataType.png)

Expand All @@ -55,19 +56,32 @@ In this section, you will configure SAP Business Rule project which will be used

![plot](./images/eventInfoDT.png)

**b.** Click on **New Field** and Enter the following three field details and click on **Save**
**b.** Click on **New Field** and Enter the **Field Details** as listed in the table below and click on **Save**.
**Note:** The values are case-sensitive.


| Name | Type |
|---------|-------------|
| SourceSystem | String |
| DeviceType | String |
| DeviceLocation | String |


![plot](./images/eventDTFields.png)

**c.** Under the**Artifacts** Tab, Click on **Create** and choose **Data Types**.
**c.** Under the **Artifacts** Tab, Click on **Create** and choose **Data Types**.

![plot](./images/actionInfoDT.png)

**d.** Create data type called **actionInfo**

![plot](./images/actionDTname.png)

**e.** Click on **New Field** and Enter the following three field details and click on **Save**
**e.** Click on **New Field** and Enter the **Field Details** as listed in the table below and click on **Save**

| Name | Type |
|---------|-------------|
| ActionId | String |

![plot](./images/actionDTFields.png)

Expand Down Expand Up @@ -101,14 +115,15 @@ In this section, you will configure SAP Business Rule project which will be used

![plot](./images/CreateRule5.png)

**g.** Fill the fields with following values:
```
SourceSystem: ='Azure',
DeviceType: ='Silo',
DeviceLocation: ='Plant A'
**g.** Fill the fields with following values: **Note:** Paste the values along with **equals-to** operator.

| SourceSystem | DeviceType |DeviceLocation | ActionId |
|---------|-------------|---------|-------------|
| = 'AWS-PPE' | = 'Camera' |= 'L001' | |


Leave the **ActionId** field empty as it is to be filled later.

ActionId to be filled later.
```
![plot](./images/RuleField.png)

5. To use the decision in our CAP extension application we need to deploy the Decision created.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation/Step6-Configure-Decisions-Part1/images/RuleField.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Documentation/Step9-Test-ExtensionApplication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ You have completed the end-to-end integration of events to business actions from

![plot](./images/S3Search.png)

2. Choose your **Amazon S3 Bucket** which was created earlier. For example : **awssapppe-p4s**
2. Choose your **Amazon S3 Bucket** which was created by you earlier.

![plot](./images/S3Bucket.png)

3. Choose the folder named **1710/** and keep navigating into the folders, the final path would be **awssapppe-p4s/1710/CB-FL-001/CAM-01** as shown in the image below. Choose **Upload**
3. Choose the folder named **1710/** and keep navigating into the folders, the final path would be **<your_S3_bucket>/1710/CB-FL-001/CAM-01** as shown in the image below. Choose **Upload**

![plot](./images/S3CAMFolder.png)

Expand Down