Activity - demoCreateTransientInstance

Activity Type: Example

Description

A demo activity that creates a data service resource. The data resource accessor for the new data service resource is held only within memory and is not written to file. This data service resource will therefore not be persisted so will not survive a container restart

The data resource accessor that is created will implement the uk.org.ogsadai.examples.demoFactory.DemoNameProvider interface and be be queried using the demoQueryInstance activity.

For more details regarding the creation of data service resources see the How to Write an Activity that Creates Transient Data Service Resources tutorial.

Example

<demoCreateTransientInstance name="myActivity">
  <name value="Bob"/>
  <myOutput name="outputStream"/>
</demoCreateTransientInstance>

Specification

Element demoCreateTransientInstance:

Input and Output Types

Data Resource Accessor

This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.examples.demoTransientFactory.ChildDataServiceResourceComponentProvider

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/demo_create_transient_instance.xsd

Class

uk.org.ogsadai.examples.demoTransientFactory.DemoCreateTransientInstanceActivity

Client Toolkit Class

None at present.