org.demac.process.base.service
Interface ServiceObject

All Known Subinterfaces:
CompensableServiceObject
All Known Implementing Classes:
LocalService, RMIService, WebServiceRequestHandler

public interface ServiceObject

A generic service object, implemented as a top-level interface for a strategy pattern (Gamma et al.), so that the org.demac.process.base.exe.BaseExecutionService is able to execute all kinds of applications and services, which are concretely provided by the Context Service.


Method Summary
 boolean connectionResetOccured()
          Method to determine if an connection reset occurred during the execution of the service, so that the execution service can call the corresponding org.demac.process.base.dpdl.ConnectionResetHandler.
 boolean exceptionOccured()
          Method to determine if an exception occurred during the execution of the service, so that the execution service can call the corresponding org.demac.process.base.dpdl.Exception handler.
 DataField execute(FormalParameter[] fp, DataField[] df)
          Method to execute a generic service.
 

Method Detail

execute

DataField execute(FormalParameter[] fp,
                  DataField[] df)
Method to execute a generic service. For proper execution, the org.demac.process.base.dpdl.FormalParameters have to be mapped to the actual parameters by sequence. If the org.demac.process.base.dpdl.FormalParameters of the actual service differ from the org.demac.process.base.dpdl.FormalParameters of the process, the parameters have to be mapped again, preserving the logical sequence for invocation. Both formal and actual parameters can be null in case the application does not expect parameters.

Parameters:
fp - the org.demac.process.base.dpdl.FormalParameters
df - the actual parameters as org.demac.process.base.dpdl.DataFields.
Returns:
the output parameter. Returns null if the service is void.

exceptionOccured

boolean exceptionOccured()
Method to determine if an exception occurred during the execution of the service, so that the execution service can call the corresponding org.demac.process.base.dpdl.Exception handler.

Returns:
true if an exception occurred

connectionResetOccured

boolean connectionResetOccured()
Method to determine if an connection reset occurred during the execution of the service, so that the execution service can call the corresponding org.demac.process.base.dpdl.ConnectionResetHandler.

Returns:
true if an connection reset occurred