Package org.jbpm.shared.services.impl.commands

## Class FunctionCommand

- java.lang.Object
- - org.jbpm.shared.services.impl.commands.FunctionCommand

- All Implemented Interfaces:
    `Serializable`, `org.kie.api.command.Command<Object>`, `org.kie.api.command.ExecutableCommand<Object>`

      public class FunctionCommand
      extends Object
      implements org.kie.api.command.ExecutableCommand<Object>

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FunctionCommand​(org.kie.api.command.ExecutableCommand<?> command, Consumer<Object> function)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Object` | `execute​(org.kie.api.runtime.Context context)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FunctionCommand

          public FunctionCommand​(org.kie.api.command.ExecutableCommand<?> command,
                                 Consumer<Object> function)

  - ### Method Detail

    - #### execute

          public Object execute​(org.kie.api.runtime.Context context)

      Specified by:
        `execute` in interface `org.kie.api.command.ExecutableCommand<Object>`