Hoppa till huvudinnehållet

Where are the workflow json files stored?

Kommentarer

6 kommentarer

  • Ken Lyon

    If you are using the on-premises version of Geocortex Workflow, the default location that Server Workflows are saved to is:

    C:\ProgramData\Geocortex\Workflow\Workflows

    Client Workflows are always saved to ArcGIS Online or Portal.

     

    You typically don't need to interact with this location directly. Having said that, we do keep previous versions of files there. There is currently no way to retrieve previous versions through the designer, but if you are feeling brave (or desperate) you could get the old content from one of the files as follows:

     

    1. Identify the id of your workflow. The easiest way to do this is to go to File > Open in Workflow Designer and find your workflow in the list.
    2. Click the three dots menu at the right and choose "Open in ArcGIS Online" or "Open in Portal". A new window will open.
    3. Note the id from the end of the url after id=.
    4. Look for files in C:\ProgramData\Geocortex\Workflow\Workflows of the form <id>-<revision>.json where <id> is your id and <revision> is a number. For example: "67daffbe69884862bab4c4a4db07d88c-14.json"
    5. Choose the file that you're interested in and open it in a text editor. As you might have guessed, 1 is the first version, the highest value is the latest revision.
    6. The file contains three properties: id, revision and workflowJson. Copy and paste the value of workflowJson into another window. (Do not include the " characters around it.)
    7. This next bit's kind of tricky, but you need to un-escape the content to be a JSON document rather than text. Perform the following two replacements in this order:
    8. Replace \\ with \.
    9. Replace \" with ".
    10. Save the file with a ".json" file extension. (e.g. lazarus.json)
    11. Import it into the Designer via File > Import.

     

    0
  • Marc Rempel

    Thanks, Ken. That is helpful to know! It makes sense that the server workflows are saved on the server and presumably the client workflows are saved in AGOL/Portal. Is there any way to grab the json from AGOL/Portal without using Workflow? I am guessing not.

     

    It would be really handy to be able to see versions especially in situations with multiple editors and the possibility of overwriting each others changes.

     

    -- Marc

    0
  • Ken Lyon

    Let me introduce you to my friend Geocortex Item Manager.

     

    You can look through your items, view edit JSON etc. Workflows are stored in the "Item Content". The "Item JSON" is the metadata about the item.

     

     

    1
  • Ken Lyon

    And yes, the client workflows are always saved to AGOL/Portal.

    0
  • Marc Rempel

    Ah, right. I had heard about Geocortex Item Manager. We have our setup via Portal though and I don't see that enabled yet? I assume that should be coming shortly since the button is there just greyed out?

    0
  • Ken Lyon

    It is possible. If you already have a subdomain registered, you could enter it there. Otherwise we explain the process here:

     

    Configure Item Manager for use in Portal for ArcGIS

    0

Du måste logga in om du vill lämna en kommentar.