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

[BUG] Fix some types of BPMN Json model #444

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Jul 30, 2020

Need in the future to simplify/merge BPMN Json model with our internal model, in order to remove some useless conversion

@csouchet csouchet added the bug Something isn't working label Jul 30, 2020
@csouchet csouchet force-pushed the Fix_types_of_bpmn_json_model branch from a55272b to c278e73 Compare July 30, 2020 13:06
@csouchet csouchet marked this pull request as ready for review July 30, 2020 13:15
@csouchet csouchet requested review from tbouffard and aibcmars July 30, 2020 13:15
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

👍 LGTM, just some questions

const json = {
definitions: {
targetNamespace: '',
process: {
association: [
{
id: 'association_id_0',
name: 'association name',
Copy link
Member

Choose a reason for hiding this comment

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

❓ why removing the name? is something that does not exist in the BPMN spec?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, in the BPMN specification/XDS, there is no name in the association 😉

return element as T;
}

export function ensureIsArray<T>(elements: (T | string)[] | T | string, acceptEmptyString = false): Array<T> {
Copy link
Member

Choose a reason for hiding this comment

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

❓ is the introduction of generics also done to cover #421 (remove usage of any)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't see that. I introduce that to be sure what we manipulate after calling this method, in order to use the BPMN Json interfaces :)

@csouchet csouchet merged commit 419eb70 into master Aug 3, 2020
@csouchet csouchet deleted the Fix_types_of_bpmn_json_model branch August 3, 2020 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants