Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Both sides previous revision Poprzednia wersja
Nowa wersja
Poprzednia wersja
Nowa wersja Both sides next revision
pl:dydaktyka:dss:lab1 [2017/10/10 00:04]
kkluza [Further development of the model]
pl:dydaktyka:dss:lab1 [2017/10/10 00:18]
kkluza [Activiti BPM Platform]
Linia 1: Linia 1:
-====== Lab. 1: Working with the Activiti platform ======+====== Lab. 1: Working with Activiti platform ======
  
 ===== Signavio Process Editor ===== ===== Signavio Process Editor =====
 +
 +**This part will be required for the next classes!**
  
 Please sign up for the Signavio Platform: [[http://​academic.signavio.com/​p/​register?​link=0b77d60921ec4ab2ac93286867a9af7d|Registration for the Signavio BPM Academic Initiative]] Please sign up for the Signavio Platform: [[http://​academic.signavio.com/​p/​register?​link=0b77d60921ec4ab2ac93286867a9af7d|Registration for the Signavio BPM Academic Initiative]]
Linia 23: Linia 25:
   password: kermit   password: kermit
  
-You can also use the temporary server version at our server: http://​192.168.1.145:​8080/​activiti-explorer/​ui/​+You can also use the temporary server version at our server: ​\\ 
 +http://​192.168.1.145:​8080/​activiti-explorer/​ui/​
  
 When logged in, you should have noticed the top bar displaying the menu of 4 icons for administration of: When logged in, you should have noticed the top bar displaying the menu of 4 icons for administration of:
Linia 133: Linia 136:
 Our subprocess consists of two tasks consisting in contacting the customer by email and calling to inform the customer about this email. In a very detailed version, we should have modeled the task of waiting for a response from the customer -- for simplicity, let's assume that when the customer has provided enough information on the phone, the user completes the "Call customer"​ task; otherwise, it will not finish until obtaining sufficient information. Our subprocess consists of two tasks consisting in contacting the customer by email and calling to inform the customer about this email. In a very detailed version, we should have modeled the task of waiting for a response from the customer -- for simplicity, let's assume that when the customer has provided enough information on the phone, the user completes the "Call customer"​ task; otherwise, it will not finish until obtaining sufficient information.
  
-In the standard case, when the deadline for offer submission expires, the subprocess should automatically terminate and terminate the process. To do this, we can extend the process using the 'Timer Boundary Event':​+In the standard case, when the deadline for offer submission expires, the subprocess should automatically terminate and terminate the process. To do this, we can extend the process using the ''Timer Boundary Event'':
  
 {{  :​pl:​dydaktyka:​bim:​lab1:​process5-eclipse-example.png?​800 ​ |}} {{  :​pl:​dydaktyka:​bim:​lab1:​process5-eclipse-example.png?​800 ​ |}}
 +
 +The ''​Timer Boundary Event''​ element has the following attributes:
 +  * ''​cancelActiviti''​ -- in our case it should be set to **''​true''​** for the subprocess to be interrupted when the event is called,
 +  * ''​timeDate''​ -- sets a specific date (in the [[wp>ISO 8601]] format) when launching an event,
 +<code xml>
 +<​timerEventDefinition>​
 +    <​timeDate>​2012-12-06T17:​00:​00</​timeDate>​
 +</​timerEventDefinition>​
 +</​code>​
 +  * ''​timeDuration''​ -- sets the time that must pass until the event is triggered, e.g. for 3 days:
 +<code xml>
 +<​timerEventDefinition>​
 +    <​timeDuration>​P3D</​timeDuration>​
 +</​timerEventDefinition>​
 +</​code>​
 +  * ''​timeCycle''​ -- sets recurring intervals of time to trigger a periodic event, e.g. 5 repetitions,​ each of which lasts an hour:
 +<code xml>
 +<​timerEventDefinition>​
 +    <​timeCycle>​R5/​PT1H</​timeCycle>​
 +</​timerEventDefinition>​
 +</​code>​
 +
 +To test the process and not wait too long for effects, I suggest setting the ''​timeDuration''​ to 2 minutes.
 +
 +Please test your model, and view the process instance diagram during this waiting (it should look similar to the model shown in the diagram below):
 +{{  :​pl:​dydaktyka:​bim:​lab1:​process5-run-example.png?​800 ​ |}}
 +
 +At this point, the new "Timer job" should appear in the **Manage** -> **Jobs** tab. If necessary, you can manually trigger the event with the **Execute** button:
 + ​{{ ​ :​pl:​dydaktyka:​bim:​lab1:​timer-job.png ​ |}}
 +
 +=== Task Mail ===
 +
 +One of the tasks in the subprocess should send the mail to the client. \\
 +In the full process, this would require some additional information to send the email \\
 +like what details would you like to know. \\
 +But for now, we will just mock this task.
 +
 +There is no mail server configured, but one can try to send messages to the local address, like ''​student@AML-Lab-316.geist.agh.edu.pl''​ (check the address at your local machine). After sending the email, we can check the terminal with ''​mail'',​ if we have it on the mailbox.
 +
 +In the e-mail, you can also send some information stored in some variables instances of the process.
  
  
pl/dydaktyka/dss/lab1.txt · ostatnio zmienione: 2019/06/27 15:50 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0