return command;
}
else if (getHost().getModel() instanceof ISubflowState
&& request.getNewObject() instanceof IAttributeMapper) {
if (((ISubflowState) getHost().getModel()).getAttributeMapper() == null) {
CreateAttributeMapperCommand command = new CreateAttributeMapperCommand();
command.setParent((ISubflowState) getHost().getModel());
return command;
}
else {
return null;
}
}
else if (getHost().getModel() instanceof IDecisionState
&& request.getNewObject() instanceof IIf) {
CreateIfCommand command = new CreateIfCommand();
command.setParent((IDecisionState) getHost().getModel());
command.setChild((IIf) request.getNewObject());
return command;
}
else {
return null;
}