The Activity Execution Context

The context is used to provide to activities information that would otherwise be inaccessible e.g. user credentials, and also any data required by the engine. The context is implemented as a hierarchical map. It will still behave exactly the way a map behaves, however it handles String keys in a special way - String keys are treated in the same way as paths in a file system. For example:

Then /request/status/ refers to a map containing keys activity1 and activity2.

The trailing / is important - /request/status would be the key for a different object. Because of this, the only objects that can be put into the context with a String key ending in / are Maps.

Two common keys and a description of their values are:

For other data the keys are placed in uk.org.ogsadai.service.OGSADAIConstants. There are some other keys in uk.org.ogsadai.engine.EngineImpl but, other than the PIPES constant, none of these should really be of interest as the engine uses them to store internal state.