Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do Not Copy Message Flows Without Participant#1904

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
philippfromme wants to merge2 commits intodevelop
base:develop
Choose a base branch
Loading
frommessage-flow-fix

Conversation

philippfromme
Copy link
Contributor

Closes#1902

returntrue;
}

if(is(element,'bpmn:Lane')&&!includes(elements,element.parent)){
Copy link
Member

Choose a reason for hiding this comment

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

We're getting rid of null-safety here. Is this intentional?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Let me have a look.

isMessageFlowTarget(target)&&
!isSameOrganization(source,target)
);
returnisMessageFlowSource(source)
Copy link
Member

Choose a reason for hiding this comment

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

I'm hesitant to merge this, as this is completely unclear what these additions ensure.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'll have to check whether this check is strictly necessary. The point is to make sure source and target are in different participants.

returnevery(elements,function(element){
if(isConnection(element)){
returncanConnect(element.source,element.target,element);
return(canConnect(element.source,element.target,element)||{}).type===element.type;
Copy link
Member

Choose a reason for hiding this comment

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

Let's elaborate what this does.

My guess is it ensures that connections can only be created if they would not change their type?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, the check was useless before because we want to create a number of shapes and connections that are predefined and must not change their type during creation.

// given
vartask1=elementFactory.createShape({type:'bpmn:Task'}),
task2=elementFactory.createShape({type:'bpmn:Task'}),
sequenceFlow=elementFactory.createConnection({
Copy link
Member

Choose a reason for hiding this comment

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

As we're fixing something I'd expect a test case that verifies the new behavior.

Copy link
Member

@nikkunikku left a comment

Choose a reason for hiding this comment

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

As indicated in my comments it is fairly hard to understand changes in theBpmnRules. Maybe certain repetitive patterns can be simplified, and moved to a separate function with a human readable name?

This applies to some repetitive patterns, including, but not limited tod84c638#diff-6031dc6e8e3d4e38aef3c1dda35e6ff836a6b6be1263157300284d0191a6d5d4R1165.

@bpmn-io-tasksbpmn-io-tasksbot added in progressCurrently worked on and removed needs reviewReview pending labelsMay 9, 2023
@nikku
Copy link
Member

Looks like this PR is stalled.@philippfromme Do you still plan to follow up? If not, let's mark the issue asspring cleaning and move this PR into our backlog.

@philippfromme
Copy link
ContributorAuthor

philippfromme commentedMay 26, 2023
edited
Loading

It's still on my radar. I just don't have capacity to work on it right now. Since we already have this pull request in progress I'd like to finish it.

nikku reacted with thumbs up emoji

@barmac
Copy link
Member

Let's move it to draft till you come back to the topic.

@barmacbarmac marked this pull request as draftMay 31, 2023 13:02
@barmacbarmacforce-pushed thedevelop branch 6 times, most recently from1be3741 to0b4e7a3CompareDecember 4, 2023 16:48
@philippfrommephilippfromme added the backlogQueued in backlog labelOct 7, 2025 — withbpmn-io-tasks
@philippfrommephilippfromme removed the in progressCurrently worked on labelOct 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nikkunikkunikku requested changes

@marstammmarstammAwaiting requested review from marstamm

@barmacbarmacAwaiting requested review from barmac

Assignees

@philippfrommephilippfromme

Labels
backlogQueued in backlog
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Creating Message Flow in Process Not Prevented
3 participants
@philippfromme@nikku@barmac

[8]ページ先頭

©2009-2025 Movatter.jp