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 and Description
    `FunctionCommand(org.kie.api.command.ExecutableCommand<?> command, Consumer<Object> function)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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>`

Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.