Code Monkey home page Code Monkey logo

workflowmanager-viewer-js's Introduction

workflowmanager-viewer-js

Source code for ArcGIS Workflow Manager JavaScript viewer - Manage your workflows on the web.

View it live

App

Features

  • Ready-to-deploy GIS web client workflow manager application for ArcGIS Server.
  • A complete workflow management application, that allows for ease and efficiency toward managing and tracking business workflows.
  • Easily configurable to meet custom business needs and requirements - no programming skills required to deploy.

Versions

The current version of the Workflow Manager JavaScript viewer is compatible with ArcGIS JavaScript 3.19 API and Workflow Manager Server 10.4 and later versions.

A version of this viewer using ArcGIS JavaScript 4.3 API can be found on the 4master branch of this repository. A Workflow Manager 4.x JavaScript API is also available and has been integrated with ArcGIS API for JavaScript versions 4.3 through 4.12.

The 10.4 Language Pack version of this viewer can be found on the 10.4 LP branch of this repository.

The 10.3.1 version of this viewer can be found on the 10.3.1 branch of this repository.

ArcGIS Workflow Manager JavaScript API

Supported Browsers

The Workflow Manager JavaScript viewer supports the following browsers:

  • Chrome
  • Firefox
  • Internet Explorer 10+

Instructions

Deployment:

  1. Fork and then clone the repo.
  2. Install an HTTP server such IIS or Apache.
  3. Modify the deployed js/app/WorkflowManager/config/AppConfig.js file to configure the Workflow Manager service, AOI Map service, basemaps and ArcGIS Token service if these are secured services (details in the README.pdf).
  4. Modify the deployed proxy/proxy.config file to configure the Workflow Manager service that the proxy will forward to (details in the README.pdf).
  5. If using IIS, create a website.
  6. Launch the sample viewer in a web browser.

Requirements

  • HTTP server such IIS or Apache
  • Web browser with access to the Internet

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2016 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

workflowmanager-viewer-js's People

Contributors

aart7367 avatar cviles avatar llam001 avatar mishran avatar nwoodthorpe avatar wmore314 avatar xiao5286 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

workflowmanager-viewer-js's Issues

Mouse Events Causing User and Groups to Populate Incorrectly

There is an issue with this code while using the current versions of Chrome (Version 92.0.4515.131 (Official Build) (64-bit)) and Firefox (Version 90.0.2 (64-bit)). In the "Create New Job" dialogue, if you use mouse clicks to choose the "User", "Groups", "Unassigned" radio buttons, the "Assignment" dropdown does not populate correctly. If you use arrow keys to cycle through the radio buttons, the dropdown populates correctly. Here is a warning logged in the console of the browser that may have something to do with the issue: "MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead."

Unable to Login with AD

I'm attempting to setup our Workflow Manager JavaScript site with AD logins. We're currently using SSO for Portal and AGS with no issues. I was able to login with authentication set to 'none'.

I've modified the following lines of code as directed and have also tried the text call-outs to see the variable, but it's not working. It reads back <%= User.Identity.Name %> and not the Windows User.

        var user = "<%= User.Identity.Name.Replace("MyDomain\","") %>";  // user without domain authentication
        //var user = "<%= User.Identity.Name.Replace("\","*") %>";     // user with domain authentication
        Controller.startup( {user: user} );

Has anyone else had this issue? Thank you.

non-Web Mercator basemaps

Please consider adding functionality for people to use non-Web Mercator basemaps and services in the application. Currently, this is not possible. We have tried making changes to the AppConfig.js, EsriMap.js, and BasemapGallery.js files, as well as ensuring that all basemaps and map services are in the same non-Web Mercator spatial reference.

Please add Browser Compatibility to ReadMe

We tried to deploy this at a client site and could not get it to work. It failed during the login. Eventually we realized that it worked with Chrome, IE10 and IE 11, but not with the client's IE9 computers.

The ArcGIS JavaScript API (3.16) supports back to IE 7. There is some code in the index.html to error for IE8.

The requirement is fine since these are old browsers, but would be nice to see it in the doc.

Launch URL

In file Constants.js

StepExecutionType : {
EXECUTABLE : "executable",
FUNCTION : "function",
PROCEDURAL : "procedural",
URL : "url",
QUESTION : "question",
FILE : "file"
},

I think it should be URL:"launch-url" instead, othewise nothing is done when calling a launch url step.

Date values reported incorrectly in query results

I tried a newer version of the code in case it was version specific but for some reason the date values reported in my query results are way off. Not just the wrong format but the wrong month and year.
e.g. StartDate is reported as "3/8/19, 4:00pm" while in the details (even in Web app) of the job it is actually "8/15/2018" . I tried setting a date format in IIS just in case it was a weird translation of date formats on the server side but no success.
Jeremy

unable to pass the loading page

somehow, it stuck at the loading page. I relinked the wfm service and AOI. I replaced โ€œ myserver" with my host name. I am not sure what I have done wrong here. please help.
btw, It was working fine in the previous version.

More clear documentation on adding a custom location

There is a section in the AppConfig.js that lets you set your own Custom locator but there is no clear documentation on how to set the locatorSources array.

I thought all I would have to do is put in the URL to the locator as type string and it would set up the source for me but that does not seem to be the case. I would get errors saying that addressToLocations() is not a function.

So after doing a little bit of digging, looking at the JS API documentation, it seems that when creating a new source you need to give it an object and then specify the new locator as a new Locator type. In order to get this to work, I needed to add in the Locator class in the define method and then call it LocatorSources like so....

locatorSources: [{
                    locator: new Locator("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Locators/SanDiego/GeocodeServer"),
                    singleLineFieldName: "SingleLine",
                    outFields: ["*"],
                    name: "i18n.widgets.Search.main.esriLocatorName",
                    placeholder: "i18n.widgets.Search.main.placeholder"

                }]

Only then did it work for me. I think it would be helpful if the documentation was updated to reflect this. Or if this is not supposed to work, then it may be a bug with using custom locators.

TypeError: Cannot read property 'slider' of undefined

capture1
capture2

I'm using JavaScript API 3.19, Workflow manager 10.5.1, SDE database 10.5.1, ArcGIS Server 10.3.1. Not sure if this error is due to Server 10.3.1 needing upgraded or something else?

Could anyone please provide suggestions?

Thanks!

Support for FeatureLayers

Please add functionality to add feature layers to show features on top of the basemap.

Here is an example of what i did.

In AppConfig.js i added...

                {
                    url: "https://myserver/server/rest/services/layers/MapServer",
                    options: {
                        id: "mapLayer1",
                        imageParameters: {
                             layerIds: [1, 2, 3],
                             layerOption: "show"
                        },
                        opacity: 0.8,
                        showAttribution: false
                    }
                }
            ]

Then in EsriMap.js i added this...

           if (this.mapConfig.customLayers) {
                var customLayers = this.mapConfig.customLayers;
                for (var i = 0; i < customLayers.length; i++) {
                    var customLayer = customLayers[i];
                    var layer;
                    if (customLayer.options && customLayer.options.imageParameters) {
                        var params = new esri.layers.ImageParameters();
                        var keys = Object.keys(customLayer.options.imageParameters);
                        arrayUtil.forEach(keys, function (key) {
                            params[key] = customLayer.options.imageParameters[key];
                        });
                        customLayer.options.imageParameters = params;
                    }
                    layer = new esri.layers.ArcGISDynamicMapServiceLayer(customLayer.url, customLayer.options);
                    if (layer) {
                        this.map.addLayer(layer);
                    }
                }
            }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.