Two workflows active at same time?
I hope this is easy and I am just missing a setting somewhere.
Is there a way to keep two workflows active in the DAta Region?
I have Workflow 1 that allows the user to process some labels for parcels for multiple locations to package all records into one Excel spreadsheet for the user to work with. It works fine if the user pans/zooms around to the next parcel to select.
However, in the middle of working on choosing the different parcels in Workflow 1, the user wants to go select another parcel but they want to use the "locate by address" or "Locate by Parcel ID" button (which are workflows) to move to another location on the map vs. just panning. The problem is that as soon as the user clicks the "locate by address" button/workflow, the icon/tab for Workflow 1 disappears and they have lost the work done in Workflow 1.
Example: See below icons/tabs at bottom of Data Region - Multiple tools that are a part of the Viewer will appear at bottom of data region. The last icon is my Workflow 1
(/customer/servlet/servlet.FileDownload?file=00P6000000e88SdEAI) /customer/servlet/servlet.FileDownload?file=00P6000000e88SdEAI
But, when the user chooses another button on the Viewer that has been added to run a workflow (such as the Search Parcel or something), the previous Workflow icon disappears and is replaced with the new workflow (see below - Search by Owner replaces the previous workflow). The user cannot return to the previous workflow like they can with Results or data layers, etc.
/customer/servlet/servlet.FileDownload?file=00P6000000e88QDEAY
Both workflows start with "Configure Workflow Container" with a "default" container name.
Any help would be appreciated.
Thank you,
Carmen
-
Personally, I don't think you can trigger two workflows simultaneously from your viewer...
However, you can use a "parallel" activity in a single workflow which runs activities simultaneously.
You've probably thought about this, but could you just copy the locate workflows into your labels workflow, with a switch/flow decision based on how they want to locate the parcels? Then just run the rest of the workflow to process the labels/excel spreadsheet.
0 -
Erik,
I hope you aren't correct, but fear that you might be.
Yes, I thought about copying the locate workflows but really would like to avoid that if possible. I would have to embed multiple types of locates and our locate by address is really long (it is different from most others).
Another route is to show users how so buffer and select parcels using Viewer default tools and Locate workflows and then writing a workflow to take the final selected features, push through a final query and create an excel spreadsheet. (which resulted in another post on the forum last week about "how to reference already selected features in a new workflow").
This is all in trying to mimic a task that people have been doing with an old IMF application for a long time.
Thanks for your help.
Carmen
0 -
Hi Carmen
You may have answered your own question:
Both workflows start with "Configure Workflow Container" with a "default" container name.
Have you tried changing the container name on one of them?
/customer/servlet/servlet.FileDownload?file=00P6000000e88P0EAI
The screenshot above is what I get when running two workflows at once (from two buttons on my toolbar) where the forms involved reference two different containers.
Obviously care would need to be taken as far as what actions each workflow takes, clearing selections, changing map extents where such changes will (negatively) affect the other workflow and give unexpected or intended results.
Regards
Ralph Price
0 -
Hi Folks,
Ralph has it - a unique container name is required to avoid having Workflow target the same container. If you want two separate forms, use two workflow containers with different names, and make sure to use the right name for the remainder of your workflow. There's nothing to stop you from creating containers "workflow1" and "workflow2" and then putting a form in either container from either workflow.
You can run multiple workflows at once. You can't share variables between two running workflows (on the server side).
Regards,
-Malcolm
0 -
Thank you all!
I will not be able to try this until Wednesday, but I am excited that it will be possible.
Thanks,
Carmen
0 -
Good to know! Thanks.
0 -
Creating unique names for the containers worked. Glad it was easy!
Thanks for all the help from the forum and GeoCortex employees - and not to be condescending when something may be obvious.
In my case (which I am sure I am not alone), I may work for a week on workflows and start to get good at it. Then, I am unable to do anything with them for a couple of months (and work in something totally different). When I return to workflows, it takes a while to remember some of the details!
Thanks,
Carmen
0
Please sign in to leave a comment.
Comments
7 comments