-
Notifications
You must be signed in to change notification settings - Fork 24
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
[vrotsc,vrotsc-annotations] (#336) Add Workflow Canvas Item for User Interaction Component #400
Conversation
… item. Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
…orator strategies. Removed obsolete structures. Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
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 don't agree with this approach. I am not going to approve these changes. If someone else wants to do so, feel free, I will remove my review then
docs/versions/latest/Components/Archetypes/typescript/Components/Workflows.md
Outdated
Show resolved
Hide resolved
...c/compiler/transformer/fileTransformers/workflow/decorators/decisionItemDecoratorStrategy.ts
Show resolved
Hide resolved
...c/compiler/transformer/fileTransformers/workflow/decorators/decisionItemDecoratorStrategy.ts
Show resolved
Hide resolved
.../compiler/transformer/fileTransformers/workflow/decorators/base/baseItemDecoratorStrategy.ts
Show resolved
Hide resolved
.../compiler/transformer/fileTransformers/workflow/decorators/base/baseItemDecoratorStrategy.ts
Show resolved
Hide resolved
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Disimssing review as per reviewer request.
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
Signed-off-by: Alexander Kantchev <[email protected]>
I can't believe we merged this 😮 We are using the "Strategy Pattern" for this. The whole point it was done this way was so we can avoid inheritance... https://www.geeksforgeeks.org/favoring-composition-over-inheritance-in-java-with-examples/ Now we've created an entirely useless abstract parent, that easily could have been a function if we were so worried about duplication. I am not saying to never use inheritance, but doing so in a Strategy pattern is... atrocious. Not to mention the wrappers that were added to the parent class. The way it was done, completely breaks SRP. Let's introduce more complexity for the sake of complexity in this "overly simple project", it boggles my mind. |
User Interaction Workflow Item
The decorator is used to specify an user interaction workflow item.
Supported Parameters
target
- The name of the target to that user interaction workflow item is connected to. You can specify another user interaction workflow item as a target, thus chaining multiple user interaction components.In order to bind inputs and outputs, you do it with the
@In
and@Out
decorators.Inputs
If you need to specify certain access limitation for the user interaction component you can specify them with
@In
decorators.Those inputs are optional.
security_assignees
(typeArray/LdapUser
) - Any user from this array of users will be authorized to fill in this form.security_assignee_groups
(typeArray/LdapGroup
) - Any user member of any of the groups will be authorized to fill in this form.security_group
(typeLdapGroup
) - Any user member of this group will be authorized to fill in this form.timeout_date
(typeDate
) - If not null, this input item will wait until date and will continue workflow execution.Note that those parameters should match also the input parameters of the workflow.
Known Limitations for the Input Parameters
The names of the variables in the additional method decorators should be as following:
security_assignees
- for the security assignees parameter.security_assignee_groups
- for the security assignee group parameter.security_group
- for the security group parameter.timeout_date
- for the timeout date parameter.Outputs
You can specify multiple output variables that would hold the answer of the user interaction components.
Example Workflow
Checklist
Fixed #XXX -
orClosed #XXX -
prefix to auto-close the issueTesting
End to end tests for the user interaction component were also added.
Related issue:
#336