workflow manager
can workflow manager do this.
goecode address
use point to select / identify layer
output a new window containing layer information.
I want to create a tool that allows users to find which supervisor district they are in. Right now all I can do is geocode then hover and see map tips or select and see more information. I want to go from address input to supervisor info.
-
Can any of you post or send me a copy of one of your workflows? I just need a starting place.
Carlos Isaac Cabrera
0 -
here is a paster of my example - it is supposed to select a stsate polygon from my rest service. it runs without error, but does not select the item???? I must be missing something.
it supposed to be a simple query and select task -- just as a test.
I think you can cut from below and paste into a file, then open the file in the workflow designer and you can see my setttings. inside of the rest manager, I added the workflow and use "runworkflow" to invoke it. I do not have any code behind - I don't know how to do that.
Jeff
<Activity mc:Ignorable="sap" x:Class="" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client" xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi" xmlns:ggg="clr-namespace:Geocortex.Gis.Geometries;assembly=Geocortex.Gis" xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting" xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow" xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=System" xmlns:s1="clr-namespace:System;assembly=mscorlib" xmlns:s2="clr-namespace:System;assembly=System.Core" xmlns:s3="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="pid" Type="InArgument(x:String)" />
</x:Members>
<sap:VirtualizedContainerService.HintSize>370,1109</sap:VirtualizedContainerService.HintSize>
<mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
<Sequence sap:VirtualizedContainerService.HintSize="330,1069" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
<Sequence.Variables>
<Variable x:TypeArguments="esri:FeatureSet" Name="results" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<gwa1:DisplayForm FormDefinition="<FormDefinition xmlns="http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ContainerFormItem xmlns:a="http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items"><a:ArgumentName/><a:ItemID>Group1</a:ItemID><a:ToolTip/><a:ValidationItems xmlns:b="http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation"/><a:Description>Example: Oregon</a:Description><a:FormItems><a:FormItem i:type="a:TextBoxFormItem"><a:ArgumentName>pid</a:ArgumentName><a:ItemID>TextBox1</a:ItemID><a:ToolTip>State Name </a:ToolTip><a:ValidationItems xmlns:b="http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation"/><a:DefaultText>Oregon</a:DefaultText><a:InputScope>Default</a:InputScope><a:Label><a:ArgumentName/><a:ItemID i:nil="true"/><a:ToolTip/><a:ValidationItems xmlns:b="http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation"/><a:LabelForItemID>TextBox1</a:LabelForItemID><a:Text>State</a:Text></a:Label><a:TextboxWidth>200</a:TextboxWidth></a:FormItem></a:FormItems><a:MaxWidth>INF</a:MaxWidth><a:Orientation>Vertical</a:Orientation></ContainerFormItem><KnownTypes xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>Geocortex.Forms.Client.Items.ContainerFormItem</a:string><a:string>Geocortex.Forms.Client.Items.TextBoxFormItem</a:string></KnownTypes><MaxHeight>800</MaxHeight><MaxWidth>1000</MaxWidth><Title>District Office Search</Title><Version>1.0</Version></FormDefinition>" sap:VirtualizedContainerService.HintSize="308,319">
<gwa1:DisplayForm.FormOutArguments>
<gwa:ArgumentWrapper x:TypeArguments="OutArgument" IsRequired="False" Name="pid">
<gwa:ArgumentWrapper.Argument>
<OutArgument x:TypeArguments="x:String">[pid]</OutArgument>
</gwa:ArgumentWrapper.Argument>
</gwa:ArgumentWrapper>
</gwa1:DisplayForm.FormOutArguments>
</gwa1:DisplayForm>
<gwa1:Alert sap:VirtualizedContainerService.HintSize="308,82" Text="[pid]" Title="Entry Verification" />
<gwa1:QueryTask sap:VirtualizedContainerService.HintSize="308,174" QueryServiceUrl="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" Results="[results]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Where="["STATE_NAME like '" &"%" & pid &"%'"]" />
<gwa1:Alert sap:VirtualizedContainerService.HintSize="308,82" Text="["STATE_NAME like '" &"%" & pid &"%'"]" Title="Query Verification" />
<gwa1:SelectFeatures ClearCollectionFirst="{x:Null}" FeatureSet="[results]" sap:VirtualizedContainerService.HintSize="308,128" LayerId="5" />
</Sequence>
</Activity>0 -
Jeff,
Good post. I was able to get your sample working with a couple small changes.
- On the QueryTask activity I set the QueryServiceUrl = http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5. Note the "/5" at the end. A query service requires a specific layer so I've supplied the ID of the "states" layer.
- On the SelectFeatures activity I set the MapServiceId = 0 (this matches the ID of my map service within my site).
--Ryan
0 -
I have made the changes you suggested and I am accessing my own server behind the firewall. But I get this error on the last step (which is select the poly):
"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property"
I have no clue about how to fix this. any hints?
Jeff
0 -
Jeff,
We use the .NET JavaScriptSerializer internally for some of our to/from JSON conversions. We've seen that particular error before when there are cyclic dependencies between objects that need to be serialized.
If you look in your REST logs (C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\REST\App_Data\Logs) does the System log provide any additional details? You might need to switch the logging level to DEBUG in Manager first.
--Ryan
0 -
Ryan--
I tried my workflow with a thinned coordinate version of Oregon and it works just fine. I had my systems person set the maxJSONlength setting to 50 million bytes. when I run the program in the workflow designer, the larger polygon returns 1,097,442 bytes. other states such as california and alaska return a much larger byte count. What's confusing too is that after we have reset the maxJSONlength setting, I no longer get an error in the designer, like before. But silverlight viewer 1_1 runs the workflow, the progress bar comes up, then fades, the comes up again shortly, then stops. no messages, no polygons selected, so I think I am exceeding some size limits in the program. The thinned out polygon version of the states works just fine, but actual official version is too big for some reason. The log under debug did not seem to be recording anything.
should I make a help ticket with support? This is a big problem if will workflows will not handle our data.
Any suggestions,
Jeff
0 -
Hi Jeff,
Could you use Fiddler to capture all HTTP traffic while you run your workflow. I'd like to see the workflow request that is failing. You can email the Fiddler .saz file to (support@latitudegeo.com) rather than posting it on the forum.
--Ryan
0 -
I'm getting the same javascriptSerializer error. I'm trying to render a large polyline with a lot of paths using the AddMarkup external command when I get the error. Is there solution or a better way to render large polylines?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer