org.ow2.bonita.definition
Interface MultiInstantiator


public interface MultiInstantiator

Implementing this interface is required to get multi-instantiation feature.
This feature allows to get multiple instantiations of an activity.

Into the xpdl file, this feature is specified within an external attributes of the Activity element.
The name of the external attribute is MultiInstantiation.
There is two child elements defining the MultiInstantiation:


Method Summary
 MultiInstantiatorDescriptor execute(QueryAPIAccessor accessor, ProcessInstanceUUID instanceUUID, java.lang.String activityId, java.lang.String iterationId)
          Method of the interface to be implemented.
Put in all your required user-defined operations.
 

Method Detail

execute

MultiInstantiatorDescriptor execute(QueryAPIAccessor accessor,
                                    ProcessInstanceUUID instanceUUID,
                                    java.lang.String activityId,
                                    java.lang.String iterationId)
                                    throws java.lang.Exception
Method of the interface to be implemented.
Put in all your required user-defined operations.

This method must return an MultiInstantiatorDescriptor.
Parameters to construct this returned object must respect the following conditions:

Otherwise a runtime exception will be raised at execution.
(*) Temporally restriction has be added ! : joinNumber must be equal to the variableValues size.

Parameters:
accessor - The InternalQueryAPIAccessor interface to access: QueryRuntimeAPI or QueryDefinitionAPI.
instanceUUID - Id of the instance.
activityId - Id of the activity.
iterationId - Id of the iteration.
Returns:
an MultiInstantiatorDescriptor that describes the number of activities to instantiate.
Throws:
java.lang.Exception - If an Exception has occurred.


Copyright © 2009 OW2 Consortium. All Rights Reserved.