Code Mode
Non planifiéeI'm finding the flowchart interface to be getting in the way quite a bit. I could be a lot more productive if i could write javascript or something (whatever workflow5 is written in). There should be an option to switch into "code mode", which reveals the source code which is being executed by the activities. Then you could even go in and tweak the activities themselves to behave more to your liking.
-
I would love to be able to do what you describe, but it just isn't what Workflow 5 is about.
So, workflow designer produces a .json config file. You can use the import/export functionality if you like to open a file up and look around. You'll quickly find that it would be very unwieldy to write a workflow in a text editor. Each activity has its input expressions which you would probably be comfortable working with in a script, but activities also have a unique numeric id, they have coordinates for where they fall on the canvas, they connect to each other by id and keep track of where the connections come into/go out of on the activity in the canvas etc. This amounts to a lot of information about how the workflow looks in the designer which a scripter isn't interested in, nevermind has the energy to contend with; this information is still necessary for the workflow to be accessible in the designer.
The workflow configs are designed to be chewed up by the workflow app, which knows which libraries go to which activities and what to do with each input etc. It's kind of like an API, without being one. I agree that it would be nice to have some js API that we could use to take advantage of all the great code that LatGeo has built from a standalone script, but this would have to be a separate product from Workflow 5, the biggest value add of which is (IMO) that any developer, or even someone who isn't code-savvy, can open up a workflow and suss out what's going on pretty quickly, then develop from what they see within the same framework that the last dev, and the next one, will use. It enforces a relatively high degree of consistency in the code and provides a robust framework including extensive help documentation to help gis admins build pretty robust tools.
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire