[5.38] Add event listener mechanism to display forms
CompletedIntroduced in VertiGIS Studio Workflow 5.38
I have seen this earlier idea. It was marked as Not Planned, but already 6 years ago. Maybe the development ideas have changed since then.
It is already possible to have an event trigger a workflow in Web, but it would be cool if an event could be consumed in an already running workflow. This would mostly apply to Display Forms, because if no form is involved, we could use the already existing event mechanism.
I'm imagining an additional option to add a specific event to a Form Element, e.g. like this
Which would allow one to select one of these events, and have a subworkflow to handle it. (I know this list is for events specific to a certain form element, so maybe a better place would be to have this on a form directly, or in some other way)
This would allow for more interactive workflows, for instance by being able to respond to changes in map extent, or a user signing in mid-session.
As an extra option: If a new command (say, viewer.raise-event) was added, this would make inter-workflow communication possible. I have already seen some use-cases where this would have been useful.
-
Berend Veldkamp Thanks for posting this. I have good news for you. We're currently developing this and it's coming along well. It will likely be VSWF 5.38. The current plan is to list a new "external" event type on the form header:
Clicking "Add" for external will prompt you for the name of the external event (which would need to be a valid event produced by Web):This would then add a new event handler for that particular external event:
Any time Web fires that event while the form is visible, the event handler will be executed. As with existing events, you will be able to use Get Form Event Data to get details from the event itself.
I need to add the caveat that this is subject to change as the work is ongoing, but I thought you might want to know.
2 -
Cool, I can't wait! Thanks for letting me know.
Is there any chance of having a 'Raise Event' workflow activity too, or a command?
1 -
Berend Veldkamp Yes, we have a User Story for an activity like that in the backlog.
1
Please sign in to leave a comment.
Comments
3 comments