Skip to content
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

Add subprocess with start event included #1039

Merged
merged 1 commit into from
May 29, 2019

Conversation

gustavjf
Copy link
Contributor

@gustavjf gustavjf commented May 21, 2019

Which issue does this PR address?

Related to camunda/camunda-modeler#1242
Dependent on bpmn-io/diagram-js#347

This automatically adds a start event to an expanded subprocess when:

  1. Creating an expanded subprocess from the palette.

camunda-modeler#1242_02

  1. Replacing a task with an expanded subprocess.

camunda-modeler#1242_01

@gustavjf gustavjf added needs discussion Needs further discussion enhancement New feature or request labels May 21, 2019
@gustavjf gustavjf requested a review from nikku May 21, 2019 10:43
@gustavjf gustavjf self-assigned this May 21, 2019
@nikku nikku added needs review Review pending and removed needs discussion Needs further discussion labels May 21, 2019
@bpmn-io-tasks bpmn-io-tasks bot closed this May 22, 2019
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label May 22, 2019
@nikku nikku reopened this May 23, 2019
@nikku nikku added the needs review Review pending label May 23, 2019
@gustavjf gustavjf force-pushed the add-subprocess-with-start-event-included branch from 9e0fb1d to af2c22d Compare May 24, 2019 15:59
@gustavjf gustavjf removed the needs review Review pending label May 24, 2019
@gustavjf gustavjf removed the request for review from nikku May 24, 2019 16:00
@gustavjf gustavjf force-pushed the add-subprocess-with-start-event-included branch 2 times, most recently from 81607d2 to d35dbce Compare May 27, 2019 15:59
@nikku
Copy link
Member

nikku commented May 29, 2019

Looks good.

@gustavjf gustavjf force-pushed the add-subprocess-with-start-event-included branch from d35dbce to aff8315 Compare May 29, 2019 12:22
@gustavjf gustavjf changed the title WIP Add subprocess with start event included Add subprocess with start event included May 29, 2019
@gustavjf gustavjf added the needs review Review pending label May 29, 2019
@gustavjf gustavjf requested a review from nikku May 29, 2019 12:31
var shape = event.context.shape,
hints = event.context.hints;

if (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be something like hints.shouldAddStartEvent = is('subporcess') && isExpanded(shape)?

That piece of code will set shouldaddStartEvent for every task.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, that simplifies things.

When:

1. Creating expanded subprocess from palette.
2. Replacing task with expanded subprocess.
@gustavjf gustavjf force-pushed the add-subprocess-with-start-event-included branch from aff8315 to ff31bfe Compare May 29, 2019 13:13
@gustavjf gustavjf requested a review from nikku May 29, 2019 13:14
@nikku nikku merged commit 3a0f044 into master May 29, 2019
@delete-merged-branch delete-merged-branch bot deleted the add-subprocess-with-start-event-included branch May 29, 2019 14:05
@barmac barmac removed the needs review Review pending label Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants