-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
363 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
02-bpmn/src/main/scala/camundala/bpmn/BpmnTimerEventDsl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package camundala.bpmn | ||
|
||
import camundala.domain.* | ||
|
||
import scala.reflect.ClassTag | ||
|
||
trait BpmnTimerEventDsl extends BpmnDsl: | ||
|
||
def title: String | ||
|
||
def timerEvent( | ||
): TimerEvent = | ||
TimerEvent( | ||
title, | ||
InOutDescr(title, descr = Some(descr)) | ||
) | ||
end BpmnTimerEventDsl |
23 changes: 23 additions & 0 deletions
23
05-examples/demos/02-bpmn/src/main/scala/camundala/examples/demos/bpmn/TimerExample.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package camundala.examples.demos.bpmn | ||
|
||
import camundala.bpmn.* | ||
|
||
object TimerExample extends BpmnProcessDsl: | ||
|
||
lazy val processName: String = "timer-example" | ||
lazy val descr: String = "" | ||
val companyDescr = "" | ||
|
||
lazy val example = process() | ||
|
||
end TimerExample | ||
|
||
object TheTimer extends BpmnTimerEventDsl: | ||
|
||
lazy val title: String = "the timer event" | ||
lazy val descr: String = "" | ||
def companyDescr: String = "" | ||
|
||
lazy val example = timerEvent() | ||
|
||
end TheTimer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...imulation/src/test/scala/camundala/examples/demos/simulation/TimerExampleSimulation.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package camundala.examples.demos.simulation | ||
|
||
import camundala.examples.demos.bpmn.* | ||
import camundala.simulation.* | ||
|
||
// exampleDemosSimulation/test | ||
// exampleDemosSimulation/testOnly *TimerExampleSimulation | ||
class TimerExampleSimulation extends DemosSimulation: | ||
|
||
simulate( | ||
scenario(`timerProcess waiting for job`)( | ||
TheTimer.example | ||
), | ||
scenario(`timerProcess waiting for variable`)( | ||
TheTimer.example | ||
.waitFor("timerReady") | ||
) | ||
) | ||
|
||
private lazy val `timerProcess waiting for job` = TimerExample.example | ||
private lazy val `timerProcess waiting for variable` = TimerExample.example | ||
end TimerExampleSimulation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
### Demos Example Process API | ||
- [Bpmn: camundala-mapping-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20camundala-mapping-example) | ||
- [Bpmn: enum-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20enum-example) | ||
- [Bpmn: message-for-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20message-for-example) | ||
- [Bpmn: example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20example) | ||
- [Bpmn: example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20example) | ||
- [Bpmn: myservice.api.v1.post](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20myservice.api.v1.post) | ||
- [Bpmn: signal-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20signal-example) | ||
- [Bpmn: simulation-TestOverrides](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20simulation-TestOverrides) | ||
- [Bpmn: timer-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Bpmn:%20timer-example) | ||
- [Dmn: DateExample](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20DateExample) | ||
- [Dmn: VariablesExample](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20VariablesExample) | ||
- [Dmn: collectEntries](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20collectEntries) | ||
- [Dmn: resultList](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20resultList) | ||
- [Dmn: singleEntry](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20singleEntry) | ||
- [Dmn: singleResult](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Dmn:%20singleResult) | ||
- [Message: intermediate-message-for-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Message:%20intermediate-message-for-example) | ||
- [Signal: intermediate-signal-for-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Signal:%20intermediate-signal-for-example) | ||
- [Timer: wait for one day](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Timer:%20wait%20for%20one%20day) | ||
- [Message: for-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Message:%20for-example) | ||
- [Signal: for-example](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Signal:%20for-example) | ||
- [Timer: the timer event](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Timer:%20the%20timer%20event) | ||
- [Worker: myEnumWorker.Topic](https://webstor.ch/camundala/myCompany/demos-example/OpenApi.html#operation/Worker:%20myEnumWorker.Topic) |
Oops, something went wrong.