Class RuleCreateCommand
- java.lang.Object
-
- jadex.platform.service.processengine.RuleCreateCommand
-
- All Implemented Interfaces:
IResultCommand<IFuture<java.util.Collection<CMSStatusEvent>>,CommandAction.CommandData>
public class RuleCreateCommand extends java.lang.Object implements IResultCommand<IFuture<java.util.Collection<CMSStatusEvent>>,CommandAction.CommandData>
The create command is used to create a component via the cms. Wraps a create command in a rule engine friendly version.
-
-
Field Summary
Fields Modifier and Type Field Description protected CreateCommand
command
The name.
-
Constructor Summary
Constructors Constructor Description RuleCreateCommand(CreateCommand command)
Create a new CreateCommand.RuleCreateCommand(java.lang.String name, java.lang.String model, CreationInfo info)
Create a new CreateCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIntermediateFuture<CMSStatusEvent>
execute(CommandAction.CommandData args)
Execute the command.CreateCommand
getCommand()
Get the command.void
setCommand(CreateCommand command)
Set the command.
-
-
-
Field Detail
-
command
protected CreateCommand command
The name.
-
-
Constructor Detail
-
RuleCreateCommand
public RuleCreateCommand(CreateCommand command)
Create a new CreateCommand.
-
RuleCreateCommand
public RuleCreateCommand(java.lang.String name, java.lang.String model, CreationInfo info)
Create a new CreateCommand.
-
-
Method Detail
-
execute
public IIntermediateFuture<CMSStatusEvent> execute(CommandAction.CommandData args)
Execute the command.- Specified by:
execute
in interfaceIResultCommand<IFuture<java.util.Collection<CMSStatusEvent>>,CommandAction.CommandData>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
getCommand
public CreateCommand getCommand()
Get the command.- Returns:
- The command.
-
setCommand
public void setCommand(CreateCommand command)
Set the command.- Parameters:
command
- The command to set.
-
-