Skip to content

Commit

Permalink
Merge pull request #7 from Bonitasoft-Community/7.x-application
Browse files Browse the repository at this point in the history
7.x application
  • Loading branch information
lio-p authored Mar 20, 2017
2 parents 4452cc7 + dfc0df9 commit 62a630a
Show file tree
Hide file tree
Showing 18 changed files with 308 additions and 57 deletions.
2 changes: 1 addition & 1 deletion exercices/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- Dockbook default build properties -->
<property name="docbook.xml.filename" value="docbook" />
<property name="docbook.xml.language" value="fr" />
<property name="docbook.xml.language" value="en" />
<import file="${net.sourceforge.dep4e.resources}/ant/docbook_5-0.xml" />

<!-- Packages the BPM Camp content (except slides) as a ZIP -->
Expand Down
14 changes: 11 additions & 3 deletions exercices/source/en/chapters/ex2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@
</imageobject>
</mediaobject>
</para>
<para>Click on "Finish".</para>
<para>Click on "Finish". </para>
<para>You should be displayed with the following message that confirm the deployment of the BDM. Check the box "Don't show me this message again" and click on "Ok".</para>
<para>
<mediaobject>
<imageobject>
<imagedata scalefit="1" width="70%" contentdepth="70%" align="center" format="png" fileref="resources/ex2_10.png" />
</imageobject>
</mediaobject>
</para>
</listitem>
<listitem>
<para><emphasis role="bold">Declare an instance of the "LeaveRequest" BDM on your process</emphasis></para>
Expand All @@ -151,7 +159,7 @@
<para><emphasis role="bold">Set up the case instantiation contract</emphasis></para>
<para>Select the process pool, and navigate to the "Execution / Contract / Inputs" tab.</para>
<para>Click on "Add from data".</para>
<para>Select the "request" BDM and click on "Next".</para>
<para>Select the "request" BDM and click on "Next". Keep the default input name "requestInput".</para>
<para>Uncheck the "requestorId" and "isApproved" attributes.</para>
<para>
<mediaobject>
Expand All @@ -160,7 +168,7 @@
</imageobject>
</mediaobject>
</para>
<para>Click on "Finish" and dismiss the warning messages about the incomplete initialization of the business variable.</para>
<para>Click on "Finish" and dismiss the warning messages about the incomplete initialization of the business variable.</para>
<para>
<mediaobject>
<imageobject>
Expand Down
44 changes: 18 additions & 26 deletions exercices/source/en/chapters/ex3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<listitem>
<para><emphasis role="bold">Create a case instantiation form.</emphasis></para>
<para>Select the process pool, and navigate to the "Execution / Instantiation form" tab.</para>
<para>Use the "Target form" drop-down to create a new form.</para>
<para>Click on the pencil next to the Target form input.</para>
<para>
<mediaobject>
<imageobject>
Expand Down Expand Up @@ -137,14 +137,13 @@
</para>
</listitem>
<listitem>
<para><emphasis role="bold">Add a variable to handle potential form submit errors</emphasis></para>
<para><emphasis role="bold">Add a variable to store potential form submit errors</emphasis></para>
<para>In the lower "Variables" section, click on "Create a new variable".</para>
<para>Set the variable name to "error", leave its type to "String" and it value empty then click on "Save".</para>
</listitem>
<listitem>
<para><emphasis role="bold">Update the "Submit" widget</emphasis></para>
<para>Select the "Submit" widget.</para>
<para>Set the "Failed response value" property to "error" (this allows to retrieve submission error details if any).</para>
<para>Set the "Failed response value" property to "error" (this will store the submit errors in the variable "error" if any).</para>
</listitem>
<listitem>
<para><emphasis role="bold">Dynamically display the error</emphasis></para>
Expand All @@ -170,38 +169,36 @@
</imageobject>
</mediaobject>
</para>
<para>Click on the top most "Preview" button.</para>
<para>Make sure that the form preview looks like this:</para>
<para>Click on the "Save" button.</para>
<para>Click on the "Preview" button.</para>
<para>The form should look like this:</para>
<para>
<mediaobject>
<imageobject>
<imagedata scalefit="1" width="70%" contentdepth="70%" align="center" format="png" fileref="resources/ex3_06.png" />
</imageobject>
</mediaobject>
</para>
<para>Check for following points:</para>
<para>Verify the following points:</para>
<itemizedlist>
<listitem><para>the widget presenting the error is not visible</para></listitem>
<listitem><para>the "Submit" button is disabled by default (this is due to the validation provided by the form container)</para></listitem>
<listitem><para>the "Submit" button is enabled when the form is valid</para></listitem>
</itemizedlist>
<para><emphasis role="bold">Note:</emphasis> the form cannot be submitted from the preview mode even when it is valid.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Save the form</emphasis></para>
<para>Use the top "Save" button to save the form.</para>
<para><emphasis role="bold">Note:</emphasis> the form cannot be submitted from the preview mode even if it is valid.</para>
<para>Close the preview window.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Create a form for the "Validate request" task.</emphasis></para>
<para>In the Studio, select the "Validate request" task and navigate to the "Execution / Form" tab.</para>
<para>Use the "Target form" drop down to create a new form.</para>
<para>Click on the pencil next to the Target form input to open a new form in the UI Designer.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Rename the form</emphasis></para>
<para>In the UI Designer, rename the form into "validateLeaveRequest" and save it.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Remove unneeded variables</emphasis></para>
<para><emphasis role="bold">Remove unnecessary variables</emphasis></para>
<para>In the lower "variables" section of the screen, remove the following variables:</para>
<itemizedlist>
<listitem><para>formInput</para></listitem>
Expand Down Expand Up @@ -276,8 +273,8 @@
<para>Create a new variable named "error", leave its type to "String" and its value empty then save it.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Remove the "Is Approved" checkbox</emphasis></para>
<para>Select the "Is Approved" checkbox and use the removal link that appears when hovering over the widget with the cursor.</para>
<para><emphasis role="bold">Remove the "Is Approved" checkbox and the "Submit" button</emphasis></para>
<para>Select the Form container that contains the checkbox and button widgets, then delete it by using the X button that appears when hovering over the container with the cursor.</para>
<para>
<mediaobject>
<imageobject>
Expand All @@ -287,12 +284,8 @@
</para>
</listitem>
<listitem>
<para><emphasis role="bold">Remove the "Submit" button</emphasis></para>
</listitem>
<listitem>
<para><emphasis role="bold">Edit the form title</emphasis></para>
<para>Select the widget automatically created.</para>
<para>Edit the widget configuration as following:</para>
<para><emphasis role="bold">Modify the form title</emphasis></para>
<para>Select the existing "Title" widget and configure it as following:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec colname='c1' colwidth="1*"/>
Expand Down Expand Up @@ -341,7 +334,7 @@
</listitem>
<listitem>
<para><emphasis role="bold">Add a widget to display the leave start date</emphasis></para>
<para>Drag an "Text" widget from the palette and drop it on a new row under the requestor widget.</para>
<para>Drag an "Text" widget from the palette and drop it in the Form container under the requestor widget.</para>
<para>Configure the widget as following:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
Expand All @@ -356,12 +349,11 @@
<tbody>
<row>
<entry>Value</entry>
<entry><code>&lt;b&gt;Leave start: &lt;/b&gt;{{request.leaveStart | date : 'MM/dd/yyyy' : 'UTC'}}</code></entry>
<entry>&lt;b&gt;Leave start date: &lt;/b&gt;{{request.leaveStart | date : 'dd/MM/yyyy' : 'UTC'}}</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para><emphasis role="bold">Note:</emphasis> we are using an AngularJS filter "| date" to display the date in a user-friendly format.</para>
</listitem>
<listitem>
<para><emphasis role="bold">Add a widget to display the number of days</emphasis></para>
Expand Down Expand Up @@ -492,7 +484,7 @@
<para>
<mediaobject>
<imageobject>
<imagedata scalefit="1" width="70%" contentdepth="70%" align="center" format="png" fileref="resources/ex3_08.png" />
<imagedata scalefit="1" width="100%" contentdepth="100%" align="center" format="png" fileref="resources/ex3_08.png" />
</imageobject>
</mediaobject>
</para>
Expand Down
6 changes: 3 additions & 3 deletions exercices/source/en/chapters/ex5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<orderedlist>
<listitem>
<para><emphasis role="bold">FakeSMTP setup</emphasis></para>
<para>Retrieve the FakeSMTP binaries from this URL: <ulink url="https://nilhcem.github.io/FakeSMTP/">https://nilhcem.github.io/FakeSMTP/</ulink></para>
<para>Run FakeSMTP by either double-clicking on the JAR file or running this shell command:</para>
<para>Download FakeSMTP from this link: <link linkend="http://nilhcem.github.com/FakeSMTP/downloads/fakeSMTP-latest.zip">http://nilhcem.github.com/FakeSMTP/downloads/fakeSMTP-latest.zip</link></para>
<para>Unzip the file and run FakeSMTP by either double-clicking on the JAR file or running this shell command:</para>
<para>
<programlisting language="shell">java -jar fakeSMTP-2.0.jar</programlisting>
</para>
Expand Down Expand Up @@ -60,7 +60,7 @@
</row>
<row>
<entry>SMTP port</entry>
<entry>2525 (FakeSMTP default port)</entry>
<entry>2525 (FakeSMTP default port or the port number specified in FakeSMTP)</entry>
</row>
<row>
<entry>SSL (in the "Security" section)</entry>
Expand Down
140 changes: 133 additions & 7 deletions exercices/source/en/chapters/ex6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
<para>Name it "leaveRequestStatus".</para>
<para>In the field API URL, enter: (no line break)</para>
<para>
<programlisting language="xml">../API/bdm/businessData/com.company.model.LeaveRequest?
q=findByRequestorId&amp;p=0&amp;c=100&amp;f=requestorId={{sessionInfo.user_id}}</programlisting>
<programlisting language="xml">../API/bdm/businessData/com.company.model.LeaveRequest?q=findByRequestorId&amp;p=0&amp;c=100&amp;f=requestorId={{sessionInfo.user_id}}</programlisting>
</para>
<para>Be careful when you copy/paste the URL that there is no whitespace left.</para>
</listitem>
Expand All @@ -93,11 +92,131 @@
</listitem>
<listitem>
<para><emphasis role="bold">Add 4 widgets in the container.</emphasis></para>
<para>One input widget with the options: Width: 3. Value: $index + 1. Read-only: Yes. Label: Num</para>
<para>One date widget with the options: Width: 3. Value: $item.leaveStart. Read-only: Yes. Label: Start date</para>
<para>One input widget with the options: Width: 3. Value: $item.dayCount. Read-only: Yes. Label: Number of days</para>
<para>One input widget with the options: Width: 3. Value: $item.isApprovedLabel. Read-only: Yes. Label: Status</para>
<para>Save the page. The page should look like that:</para>
<para>One "Input" widget with the following options:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec colname='c1' colwidth="2*"/>
<colspec colname='c2' colwidth="4*"/>
<thead>
<row>
<entry>Property</entry>
<entry>Value</entry>
</row>
</thead>
<tbody>
<row>
<entry>Width</entry>
<entry>3</entry>
</row>
<row>
<entry>Read-Only</entry>
<entry>Yes</entry>
</row>
<row>
<entry>Label</entry>
<entry>Num</entry>
</row>
<row>
<entry>Value</entry>
<entry>$index + 1</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>One "Date picker" widget with the following options:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec colname='c1' colwidth="2*"/>
<colspec colname='c2' colwidth="4*"/>
<thead>
<row>
<entry>Property</entry>
<entry>Value</entry>
</row>
</thead>
<tbody>
<row>
<entry>Width</entry>
<entry>3</entry>
</row>
<row>
<entry>Read-Only</entry>
<entry>Yes</entry>
</row>
<row>
<entry>Label</entry>
<entry>Start date</entry>
</row>
<row>
<entry>Value</entry>
<entry>$item.leaveStart</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>One input widget with the following options:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec colname='c1' colwidth="2*"/>
<colspec colname='c2' colwidth="4*"/>
<thead>
<row>
<entry>Property</entry>
<entry>Value</entry>
</row>
</thead>
<tbody>
<row>
<entry>Width</entry>
<entry>3</entry>
</row>
<row>
<entry>Read-Only</entry>
<entry>Yes</entry>
</row>
<row>
<entry>Label</entry>
<entry>Number of days</entry>
</row>
<row>
<entry>Value</entry>
<entry>$item.dayCount</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>One "Input" widget with the following options:</para>
<informaltable frame="all">
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec colname='c1' colwidth="2*"/>
<colspec colname='c2' colwidth="4*"/>
<thead>
<row>
<entry>Property</entry>
<entry>Value</entry>
</row>
</thead>
<tbody>
<row>
<entry>Width</entry>
<entry>3</entry>
</row>
<row>
<entry>Read-Only</entry>
<entry>Yes</entry>
</row>
<row>
<entry>Label</entry>
<entry>Status</entry>
</row>
<row>
<entry>Value</entry>
<entry>$item.isApprovedLabel</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>Save the page. The page should look like this:</para>
<para>
<mediaobject>
<imageobject>
Expand Down Expand Up @@ -218,6 +337,13 @@
<para>Log in the portal and edit the previous page.</para>
<para>Select the new zip file.</para>
<para>Refresh your application, the change should be visible.</para>
<para>
<mediaobject>
<imageobject>
<imagedata scalefit="1" width="100%" contentdepth="100%" align="center" format="png" fileref="resources/ex6_13.png" />
</imageobject>
</mediaobject>
</para>
</listitem>
</orderedlist>
</section>
Expand Down
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 exercices/source/en/resources/screenshots/ex3_01.png
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 exercices/source/en/resources/screenshots/ex3_07.png
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 exercices/source/en/resources/screenshots/ex3_08.png
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 exercices/source/en/resources/screenshots/ex6_08.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.
10 changes: 9 additions & 1 deletion exercices/source/fr/chapters/ex2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@
</mediaobject>
</para>
<para>Cliquer sur "Terminer".</para>
<para>Le message suivant s'affiche pour confirmer le deploiement du BDM. Cocher l'option "Don't show me this message again" et cliquer sur "Ok".</para>
<para>
<mediaobject>
<imageobject>
<imagedata scalefit="1" width="70%" contentdepth="70%" align="center" format="png" fileref="resources/ex2_10.png" />
</imageobject>
</mediaobject>
</para>
</listitem>
<listitem>
<para><emphasis role="bold">Déclarer une variable métier de type "DemandeConges" dans le processus.</emphasis></para>
Expand All @@ -151,7 +159,7 @@
<para><emphasis role="bold">Configurer le contrat d'instanciation</emphasis></para>
<para>Sélectionner le pool de processus et naviguer dans l'onglet "Exécution / Contrat / Entrées".</para>
<para>Cliquer sur le bouton "Ajouter à partir de données...".</para>
<para>Sélectionner la variable métier "demande" et cliquer sur "Suivant".</para>
<para>Sélectionner la variable métier "demande" et cliquer sur "Suivant". Garder le nom par défaut "demandeInput".</para>
<para>Décocher les attributs "idDemandeur" et "estApprouvee".</para>
<para>
<mediaobject>
Expand Down
Loading

0 comments on commit 62a630a

Please sign in to comment.