Previous Topic

Book Contents

Book Index

Next Topic

Assigning the New Activity

To make the new activity available in the Workflow Creation Tool (WCT), modify the method getAvailableMetaNodes() in the class AddNodeWizardStepStart so that it returns an additional element in the returned array. The tmpResult is the vector containing all activities, the object you add to this vector is the MetaNodeInfoHolder, which holds the displayed name and the name of the meta class of the given activity.

Vector tmpResult = new Vector()

tmpResult.add(new MetaNodeInfoHolder (MetaPrintMessage.theMetaInfo().getDisplayName(), MetaPrintMessage.class.getName()))

Therefore, the appropriate code you add to the class may look as follows:

tmpResult.add(new MetaNodeInfoHolder

(“This is my activity”, ”de.usu.s3.workflow.meta.activity.MetaMyActivity”)

See Also

Writing New Activities

Description of the Activities

Writing an Activity Class

Writing a Class

Extending the Properties Files

Writing an Editor