-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: add ad-hoc-sub-process
rule
#160
Conversation
b323933
to
957c148
Compare
Added dependency:
|
I'm not sure on the spec intention, but does it feature a blank intermediate catch event or a link catch event as a proposed start? If not, let's not feature these elements as valid, but feature Link catch: I'm not sure what semantics that should have. 🙃 |
Let's consider the spec text:
According to it, this, I think, would be a reasonable use of an ad-hoc sub process, with intermediate catch events: |
I agree with the approach. |
@nikku, note that the intermediate events inside the ad-hoc subprocess are not active by default. Instead, they must be explicitly activated before they can be triggered. In the example, the timer is triggered 10 minutes after its activation, not 10 minutes after the subprocess is entered. The conditional event can only be triggered if it is activated first. Like other activities inside the ad-hoc subprocess, events must be activated first.
Yes.
Yes. |
Thanks both. The usual semantics of ad-hoc applies:
➡️ This will pose an interesting run-time/introspection challenge, too (ref) |
@jarekdanielak as per above discussions I'll update the example in this PR to a simplified version of #160 (comment). |
Verify that an ad-hoc sub-process is valid: * Must not contain start or end events. * Every intermediate event must have an outgoing sequence flow. Related to camunda/camunda-modeler#4811
…-hoc sub-process
Updated docs via bfbe5c5, squashed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff 👏
@@ -1,5 +1,6 @@ | |||
module.exports = { | |||
rules: { | |||
'ad-hoc-sub-process': 'error', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree!
Great stuff 👏 |
I'm going to release this thing, with the other nit-pics currently worked on. |
Proposed Changes
Add
ad-hoc-sub-process
rule which validates an ad-hoc sub-process against the BPMN specification.Constraints:
Additionally with b323933 we make sure existing sub-process rule also applies to an ad-hoc sub-process.
Related to camunda/camunda-modeler#4811
Depends on #164 for 🟢 CI.
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}