Skip to content

Commit

Permalink
[Fix] errors in exercises 03-06 and index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoille committed Nov 17, 2020
1 parent e971522 commit 98c0541
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions docs/en/03-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Create the following forms:
-------- | ------
Name | requestor
Type | External API
API URL | `../API/identity/user/{%raw%}{{request.requestorId}}{%endraw%}`
API URL | `../API/identity/user/{{request.requestorId}}`

1. Edit the form title:
- Select the **Title** widget located at the top of the form
Expand All @@ -119,9 +119,8 @@ Create the following forms:

Property | Value
--------- | ------
Text | `<b>Requestor:</b> {%raw%}{{requestor.firstname}} {{requestor.lastname}}{%endraw%}`
Text | `<b>Requestor:</b> {{requestor.firstname}} {{requestor.lastname}}`


1. Add a widget to reject the request:
- Drag a **Button** widget from the palette and drop it in the form container (highlight with a dashed border)
- Configure the widget as following:
Expand All @@ -148,7 +147,6 @@ Create the following forms:
Failed response value | `formOutput._submitError`
Target URL on success | `/bonita`


1. Remove the *Is Approved* checkbox and the *Submit* button

1. Check the form's appearance
Expand Down
4 changes: 2 additions & 2 deletions docs/en/06-applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Optional: Add a date widget and an input widget to collect new leave request inf
- Click on **Data model** icon
- Drag and drop *LeaveRequest* onto the page
- In section **"Find By" queries on an attribute**, select *requestorId*
- In section **"requestorId" value** enter : `{% raw %}{{sessionInfo.user_id}}{% endraw %}`
- In section **"requestorId" value** enter : `{{sessionInfo.user_id}}`
- Click on **Save** button

1. Declare a new JavaScript expression to format the list of request:
Expand Down Expand Up @@ -207,7 +207,7 @@ Optional: Add a date widget and an input widget to collect new leave request inf
- Enter *Create a new request* in the field **Label**
- Select **POST** in the **Action** drop-down list
- Click on **fx** to switch the **Data sent on click** field mode and then enter *formInput*
- In the field **URL to call**, enter: `../API/bpm/process/{% raw %}{{processDefinitionInfo[0].id}}{% endraw %}/instantiation`
- In the field **URL to call**, enter: `../API/bpm/process/{{processDefinitionInfo[0].id}}/instantiation`
- In the field **Target URL on success**, enter: `/bonita/apps/leave-request`
- Save the page
- The page should look like that:
Expand Down
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ with your default web browser. You can configure Bonita Studio to use an other b
- In the list of **External web browsers** select the one you want to use and click on **Apply** button
- Close the preferences window

[Start exercises](00-introduction)
[Start exercises](00-introduction.md)

0 comments on commit 98c0541

Please sign in to comment.