Some Workflow5 'session' hints please - attributing with session parameters
Hi I'm new to Workflow, love it! I am wondering if somebody could give me a nudge in the right direction... I wish to:
- Have the user enter some 'session'/workflow parameters (case_id, user_name...) (OK, display form -> vars)
- Allow the user to add new polygons to a layer (see below)
- Attribute certain fields in each of the new geometries with the session info (struggling)
- Save or submit the session (OK, simply end the workflow)
- Run the 'same' workflow with previous 'session'/workflow parameters i.e skip to the geometry edits. What could be a mechanism allowing users to select from previous work done?
I think the 'Edit' widget might be the go for the edits, but am struggling to see how to integrate it into a workflow... think I miss something simple here!
If the starting point for the whole workflow is simply a display form catching session info into variables... is there any way to allow the user to fix any booboos in this info at a later stage... i.e. edit vars once input?
I haven't yet found an example regarding field attribution from variables in code... anybody know of any?
Thanks very much for any tips on how to construct this workflow properly!
-
Hi David,
This is a fairly advanced use case but I think I can give you some info that will be helpful.
- You can use the Set Application Data activity to temporarily store session data and Get Application Data to retrieve that session data. This can be used with any field type, including geometry
- At the start of the workflow, you could check for the existence of values set within the application, then use the Hide Form Element to hide the Geometry Picker.
If you search in the Shared with me section for 'GW5', that will retrieve all of the sample workflows that currently exist and is useful when learning how to use activities and input values properly into activities.
Thanks, Stefan
0 -
Thanks for your help Stefan.
0
Please sign in to leave a comment.
Comments
2 comments