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

Implement the display name of the workflow instance #14276

Open
hyzx86 opened this issue Sep 5, 2023 · 7 comments · May be fixed by #16043
Open

Implement the display name of the workflow instance #14276

hyzx86 opened this issue Sep 5, 2023 · 7 comments · May be fixed by #16043
Milestone

Comments

@hyzx86
Copy link
Contributor

hyzx86 commented Sep 5, 2023

Currently, the display name of our workflow instance directly uses the instance Id, which is very unfriendly to users

I tried to implement this in my project, but found that there was no extension field Properties in WorkflowType

Can we make WorkflowType inherit from 'Entity' and only need one change to achieve unlimited expansion? It should be great.

In the figure below, I added a last execution time with the extended information for the workflow instance.

For the process title, however, it should be a user-defined expression, like 'TitilePart', or specified directly by the script node.

image

@hyzx86
Copy link
Contributor Author

hyzx86 commented Sep 5, 2023

related : #14275

@MikeAlhayek
Copy link
Member

@hyzx86 adding Entity to the WorflowType sounds like a reasonable request. However, what user friendly name would you choose here? If there is a better idea that the ID, maybe it is something that we can bring into OC.

@hyzx86
Copy link
Contributor Author

hyzx86 commented Sep 6, 2023

I am trying to do a user-driven workflow that contains a to-do list, for example the process instance name that the user will see will be shown as
{workflowName}-{CaseID}-{RequestorName}

@MikeAlhayek
Copy link
Member

I see. Maybe a PR with new option on the workflow that a user can change. By default it would be something like this {{ Workflow.Id }}

@hyzx86
Copy link
Contributor Author

hyzx86 commented Sep 6, 2023

I see. Maybe a PR with new option on the workflow that a user can change. By default it would be something like this {{ Workflow.Id }}

Yes, it is.
I'll also add some other fields, such as the user/role that can initiate the workflow
But these are less applicable to the current OC

@MikeAlhayek
Copy link
Member

I would say configurable title is something we can bring to OC. Not sure other field will. If you are using Liquid, you can freely access any property from the workflow and other things like HttpContext. If you need custom data like roles or fields, maybe access the HttpContext.User via liquid.

Feel free to submit a new PR to change the title. I don't think this will be a problem

@sebastienros
Copy link
Member

I would suggest to add the title template property to WorkflowType directly, and not use Entity for that.

@sebastienros sebastienros added this to the 1.x milestone Sep 12, 2023
@hyzx86 hyzx86 linked a pull request May 14, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants