sPFLib/src/main/java/it/polimi/spf/lib/services/SPFServiceExecutor.java
public boolean sendActivity(String target, SPFActivity activity) {
		InvocationResponse resp = mExecutionInterface.sendActivity(target, activity);
		if(resp.isResult()){
			return GsonHelper.gson.fromJson(resp.getPayload(), Boolean.class);
		} else {
			return false;
		}
	}
public boolean sendActivity(String target, SPFActivity activity) {
		InvocationResponse resp = mExecutionInterface.sendActivity(target, activity);
		if(resp.isResult()){
			return GsonHelper.gson.fromJson(resp.getPayload(), Boolean.class);
		} else {
			return false;
		}
	}
public boolean sendActivity ( String target , SPFActivity activity ) { InvocationResponse resp = mExecutionInterface . sendActivity ( target , activity ) ; if ( resp . isResult ( ) ) { return GsonHelper . gson . fromJson ( resp . getPayload ( ) , Boolean . class ) ; } else { return false ; } }
Dispatches an activity to the SPF instances matching the given
identifier. The framework will perform information injection into the
activity: such information will be available to the caller once the
method ends.

@param target
- the target of the activity.
@param activity
- the activity to dispatch.
@return - true if the activity has been correctly consumed by the
recipient.
Dispatches an activity to the SPF instances matching the given identifier . The framework will perform information injection into the activity : such information will be available to the caller once the method ends .