Hoppa till huvudinnehållet

Workflow Tips n Tricks Thread

Kommentarer

9 kommentarer

  • Nico Burgerhart

    Useful tips.

    0
  • Permanently deleted user

    How to use SQL 'IN'-clause in WHERE-clause in the SQL QUERY Task

    When you have one parameter which passes the comma delimietered variable with which you think you want to put in IN-clause, say 'WHERE aFieldName IN ([Your Parameter Name])' in the command text, it won't work when the variable contains more than one thing to filter since "You can't use a single parameter for a list of values ".

    This is what you can do to achieve with the MS SQL DB and in the Oracle DB. 

    (1) MS SQL DB :  create a table-valued function to split your string parameter

    (2) Oracle: utilize the oracle  ' (http://download-uk.oracle.com/docs/cd/B12037_01/server.101/b10759/functions116.htm) regexp_substr  function'

     

    Let's share all cool/meagre tips n tricks we found to make the place you enter in the better little more (it sounds like a slogan from boy-scout ^_*)!

    0
  • Permanently deleted user

    Token for a Secured Map Service for Query Task activity

    Just an FYI that, as of Essentials 3.15, the Get Token activity is not needed for getting ArcGIS tokens for secured services that are part of a site; the Token out argument of GetMapServiceInfo will work just fine now.

    0
  • Permanently deleted user

    Sending FeatureSet both to ActiveCollection (Named Collection) and DefaultCollection

    Sometimes you want to send the FeatureSet (from QueryTask or BufferedTask etc) to display on the Result as the ActiveCollection or Default Collection using SelectFeatures activity.

    Rather than executing two consecutive SelectFeatures activities (with/without Collection Name), call SelectFeatures with Collection name (so sending as Active Collection), and then Run ExternalCommand with 'AppendToDefaultCollectionById' whose parameter is the Collection Name you used on SelectFeature.

    To Check the FeatureSet Content

    Find Log Activity (under Debugging group) on WF designer, and put Message as 'featureSet.ToJason', and then check your REST System Logging file to check. It depends on the Log Level you set on Rest manager though (Default is Info). So set Log activity as Info level unless you want to see lots of Debug logging.

     

    0
  • Permanently deleted user

    Hi Kevin,

    I looked the workflow designer 4.1's help module but couldn't find where it can tells me if an activity is async or not. Any suggestions? Thanks.

    regards,

    Jack

    0
  • Kevin Penner

    You can see if an activity is Async by looking at it's Inheritance Hierarchy in the help section for the activity.

    /customer/servlet/servlet.FileDownload?file=00P6000000e88Z6EAI

    0
  • Permanently deleted user

    I see. Thanks Kevin.

    0
  • Permanently deleted user

    Hello,

    So here's one tip saying - Storing credentials on the server and retrieving them in workflow

     

    I have query here on something similar. I have ArcGIS online account from where all my feature layers are loaded. But all my queries on feature layer should be performed based on identity server authentiication. Now if I login thru identity server credentials, none of my feature layers load saying access denied. (which is obvious).

     

    So can i store my arcgis online credentials on the server (config file) as they are never going to change and then make user to login thru identity server and open site with all layers loaded? 

     

    Thanks.

    0
  • Permanently deleted user
    Hi Kevin, I'm re-reading your thread, and really hope more tips added on to it. Just a question about Parallel. You said "There is no real benefit in using parallel activities other than being cosmetic if you do not have async code, client activities or a combiniation of both running in them." Does that mean only activities that inherited from System.Activities.AsyncCodeActivity or under the Common Client section are benifited by running in Parallel? Or how can I be sure on which activities are Client activities? thanks
    0

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