Package org.flowable.bpmn.model

# Class Resource

java.lang.Object
org.flowable.bpmn.model.BaseElement
org.flowable.bpmn.model.Resource

All Implemented Interfaces:
  `HasExtensionAttributes`

public class Resource extends BaseElement
The Resource class is used to specify resources that can be referenced by Activities. These Resources can be Human Resources as well as any other resource assigned to Activities during Process execution time.

Author:
  Tim Stephenson

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected String`
  `name`

  ### Fields inherited from class org.flowable.bpmn.model.BaseElement

  `attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Resource(String resourceId, String resourceName)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BaseElement`
  `clone()`
  `String`
  `getName()`
  `void`
  `setName(String name)`
  `void`
  `setValues(Resource otherResource)`

  ### Methods inherited from class org.flowable.bpmn.model.BaseElement

  `addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber`

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

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

- ## Field Details

  - ### name

    protected String name

- ## Constructor Details

  - ### Resource

    public Resource(String resourceId, String resourceName)

- ## Method Details

  - ### getName

    public String getName()

  - ### setName

    public void setName(String name)

  - ### clone

    public BaseElement clone()
    Specified by:
      `clone` in class `BaseElement`

  - ### setValues

    public void setValues(Resource otherResource)