Package org.jbpm.kie.services.impl

## Class CommonUtils

- java.lang.Object
- - org.jbpm.kie.services.impl.CommonUtils

-     public class CommonUtils
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CommonUtils()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static List<String>` | `getAuthenticatedUserRoles​(org.kie.internal.identity.IdentityProvider identityProvider)` |
    `static List<String>` | `getCallbackUserRoles​(org.kie.api.task.UserGroupCallback userGroupCallback, String userId)` |
    `static Long` | `getProcessInstanceId​(org.kie.api.command.Command<?> command)` | Returns the process instance id field in a command, if available

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

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

- - ### Constructor Detail

    - #### CommonUtils

          public CommonUtils()

  - ### Method Detail

    - #### getProcessInstanceId

          public static Long getProcessInstanceId​(org.kie.api.command.Command<?> command)

      Returns the process instance id field in a command, if available See the CommonUtils.testProcessInstanceIdCommands test in this module
      Parameters:
        `command` - The `Command` instance
      Returns:
        the process instance id, if it's available in this command

    - #### getAuthenticatedUserRoles

          public static List<String> getAuthenticatedUserRoles​(org.kie.internal.identity.IdentityProvider identityProvider)

    - #### getCallbackUserRoles

          public static List<String> getCallbackUserRoles​(org.kie.api.task.UserGroupCallback userGroupCallback,
                                                          String userId)