Package ru.bgcrm.plugin.bgbilling

# Class ExpressionObject

java.lang.Object
org.bgerp.dao.expression.ExpressionContextAccessingObject
ru.bgcrm.plugin.bgbilling.ExpressionObject

All Implemented Interfaces:
  `ExpressionObject`

public class ExpressionObject extends ExpressionContextAccessingObject

- ## Field Summary

  ### Fields inherited from class org.bgerp.dao.expression.ExpressionContextAccessingObject

  `context`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `cp(int contractParamId, String contractParamType, int processParamId)`
  Copy parameter value from link contract to the process
  `void`
  `toContext(Map<String,Object> context)`

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

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

- ## Method Details

  - ### toContext

    public void toContext(Map<String,Object> context)
    Specified by:
      `toContext` in interface `ExpressionObject`
    Overrides:
      `toContext` in class `ExpressionContextAccessingObject`

  - ### cp

    public void cp(int contractParamId, String contractParamType, int processParamId) throws Exception
    Copy parameter value from link contract to the process
    Parameters:
      `contractParamId` - billing contract parameter ID, must has a same type as
      `contractParamType` - contract parameter type, empty string if the type is the same with
      `processParamId` - process parameter ID, also defines a type, supported parameter types:
  - `address` from `address` type of contract parameter
  - `date` from `date` type of contract parameter
  - `blob`, `text` from `text`, `address`, `phone` types of contract parameter
  - `phone` from `phone` type of contract parameter
    Throws:
      `Exception`