If you have tried debugging your workflows using the log viewer in VertiGIS Studio Go, you may have noticed that certain activity outputs, like the ones from the Get Map activity, don't get fully logged like they do when you run the same activities in VertiGIS Studio Web or in the Workflow Sandbox.
VertiGIS Studio Web:
VertiGIS Studio Go (Mobile app):
This is because certain objects in VertiGIS Studio Mobile apps are contained within wrappers. In order to view what's inside, it's necessary to unwrap the object. This can be done using the .unwrap() method.
How to Log Unwrapped Objects
To view things like the outputs from a Get Map activity in your VertiGIS Studio Mobile apps, do the following:
- Open the workflow in Workflow Designer.
- After the activity you are trying to debug, add a Log activity.
- Log the output of the activity you are trying to debug, adding .unwrap() to the end. For example:
=$map1.map.unwrap()- Save the workflow.
- Open your Mobile app in Studio Go.
- Run the workflow.
- Open the log viewer (press the F12 key on Windows or navigate to it via the Settings menu).
- Look for the Log activity and click on it. You can use the Filter tool to search if you need to.
- Expand Inputs > message.
- The contents of the wrapped object can be seen in the log:
Comments
0 comments
Article is closed for comments.