1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CBPActivity
Граф наследования:CBPActivity:
BaseActivity CBPCompositeActivity CBPRestActivity

Открытые члены

 getDocumentId ()
 setDocumentId ($documentId)
 setDocumentType (array $documentType)
 getDocumentEventType ()
 getWorkflowStatus ()
 setWorkflowStatus ($status)
 setFieldTypes (array $arFieldTypes=[])
 getWorkflowTemplateId ()
 getTemplateUserId ()
 getPropertyBaseType ($propertyName)
 getTemplatePropertyType ($propertyName)
 setProperties ($arProperties=array())
 setPropertiesTypes ($arPropertiesTypes=array())
 getPropertyType ($propertyName)
 getVariableBaseType ($variableName)
 setVariables ($variables=[])
 setVariablesTypes ($arVariablesTypes=array())
 setVariable ($name, $value)
 getVariable ($name)
 getVariableType ($name)
 getConstant ($name)
 getConstantType ($name)
 isVariableExists ($name)
 getName ()
 getRootActivity ()
 setWorkflow (CBPWorkflow $workflow)
 unsetWorkflow ()
 getWorkflowInstanceId ()
 addStatusTitle ($title='')
 deleteStatusTitle ($title='')
 getRuntimeProperty ($object, $field, CBPActivity $ownerActivity)
 parseValue ($value, $convertToType=null, ?callable $decorator=null)
 __get ($name)
 __isset ($name)
 pullProperties ()
 __set ($name, $val)
 isPropertyExists ($name)
 collectNestedActivities ()
 collectUsages ()
 collectPropertyUsages ($propertyName)
 __construct ($name)
 toString ()
 initialize ()
 finalize ()
 execute ()
 cancel ()
 handleFault (Exception $exception)
 fixUpParentChildRelationship (CBPActivity $nestedActivity)
 addStatusChangeHandler ($event, $eventHandler)
 removeStatusChangeHandler ($event, $eventHandler)
 setStatus ($newStatus, $arEventParameters=array())
 initializeFromArray ($arParams)
 markCanceled ($arEventParameters=[])
 markCompleted ($arEventParameters=[])
 markFaulted ($arEventParameters=[])
 getTitle ()
 setActivated (bool $activated)
 isActivated ()

Открытые статические члены

static load ($stream)
static includeActivityFile ($code)
static createInstance ($code, $name)
static callStaticMethod ($code, $method, $arParameters=array())
static renderResult (array $result, string $workflowId, int $userId)
static validateProperties ($arTestProperties=array(), CBPWorkflowTemplateUser $user=null)
static validateChild ($childActivity, $bFirstChild=false)
static & findActivityInTemplate (&$arWorkflowTemplate, $activityName)
static isExpression ($text)
static parseExpression ($exp)

Поля данных

CBPActivity $parent = null
int $executionStatus = CBPActivityExecutionStatus::Initialized
int $executionResult = CBPActivityExecutionResult::None
const StatusChangedEvent = 0
const ExecutingEvent = 1
const CancelingEvent = 2
const ClosedEvent = 3
const FaultingEvent = 4
const ValuePattern = '#^\s*'.self::ValueSinglePattern.'\s*$#i'
const ValueInlinePattern = '#'.self::ValueSinglePattern.'#i'
const ValueInternalPattern = '\{=\s*([a-z0-9_]+)\s*\:\s*([a-z0-9_\.]+)(\s*>\s*([a-z0-9_\:]+)(\s*,\s*([a-z0-9_]+))?)?\s*\}'
const CalcPattern = '#^\s*(=\s*(.*)|\{\{=\s*(.*)\s*\}\})\s*$#is'
const CalcInlinePattern = '#\{\{=\s*(.*?)\s*\}\}([^\}]|$)#is'
 $workflow = null
array $arEventsMap = []

Защищенные члены

 getRawProperty ($name)
 collectUsagesRecursive ($val, &$usages)
 getObjectSourceType ($objectName, $fieldName)
 reInitialize ()
 getACNames ()
 fixResult (Bitrix\Bizproc\Result\ResultDto $result)
 trackError (string $errorMsg)
 getDebugInfo (array $values=[], array $map=[])
 getStorage ()

Защищенные статические члены

static getPropertiesMap (array $documentType, array $context=[])
static checkResultViewRights (array $result, string $workflowId, int $userId)
static checkUserAccessWithSubordination (int $userId, array $users)

Защищенные данные

array $arProperties = []
array $arPropertiesTypes = []
string $name = ''
bool $activated = true
int $resultPriority = 0

Подробное описание

См. определение в файле activity.php строка 7

Конструктор(ы)

◆ __construct()

__construct ( $name)

Переопределяется в CBPRestActivity.

См. определение в файле activity.php строка 1150

Методы

◆ __get()

__get ( $name)

Переопределяется в BaseActivity.

См. определение в файле activity.php строка 1036

◆ __isset()

__isset ( $name)

См. определение в файле activity.php строка 1047

◆ __set()

__set ( $name,
$val )

См. определение в файле activity.php строка 1060

◆ addStatusChangeHandler()

addStatusChangeHandler ( $event,
$eventHandler )

См. определение в файле activity.php строка 1282

◆ addStatusTitle()

addStatusTitle ( $title = '')

См. определение в файле activity.php строка 451

◆ callStaticMethod()

callStaticMethod ( $code,
$method,
$arParameters = array() )
static

См. определение в файле activity.php строка 1375

◆ cancel()

cancel ( )

Переопределяется в CBPRestActivity.

См. определение в файле activity.php строка 1204

◆ checkResultViewRights()

checkResultViewRights ( array $result,
string $workflowId,
int $userId )
staticprotected

См. определение в файле activity.php строка 1548

◆ checkUserAccessWithSubordination()

checkUserAccessWithSubordination ( int $userId,
array $users )
staticprotected

См. определение в файле activity.php строка 1568

◆ collectNestedActivities()

collectNestedActivities ( )

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 1073

◆ collectPropertyUsages()

collectPropertyUsages ( $propertyName)

См. определение в файле activity.php строка 1085

◆ collectUsages()

collectUsages ( )

См. определение в файле activity.php строка 1078

◆ collectUsagesRecursive()

collectUsagesRecursive ( $val,
& $usages )
protected

См. определение в файле activity.php строка 1093

◆ createInstance()

createInstance ( $code,
$name )
static
Аргументы
string$code
string$name
Возвращает
CBPActivity|null
Исключения
CBPArgumentOutOfRangeException

См. определение в файле activity.php строка 1359

◆ deleteStatusTitle()

deleteStatusTitle ( $title = '')

См. определение в файле activity.php строка 464

◆ execute()

execute ( )

Переопределяется в BaseActivity.

См. определение в файле activity.php строка 1193

◆ finalize()

finalize ( )

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 1189

◆ findActivityInTemplate()

& findActivityInTemplate ( & $arWorkflowTemplate,
$activityName )
static

См. определение в файле activity.php строка 1713

◆ fixResult()

fixResult ( Bitrix\Bizproc\Result\ResultDto $result)
protected

См. определение в файле activity.php строка 1504

◆ fixUpParentChildRelationship()

fixUpParentChildRelationship ( CBPActivity $nestedActivity)

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 1222

◆ getACNames()

getACNames ( )
protected

См. определение в файле activity.php строка 1237

◆ getConstant()

getConstant ( $name)

См. определение в файле activity.php строка 355

◆ getConstantType()

getConstantType ( $name)

См. определение в файле activity.php строка 363

◆ getDebugInfo()

getDebugInfo ( array $values = [],
array $map = [] )
protected

См. определение в файле activity.php строка 1590

◆ getDocumentEventType()

getDocumentEventType ( )

См. определение в файле activity.php строка 89

◆ getDocumentId()

getDocumentId ( )
Возвращает
array

См. определение в файле activity.php строка 52

◆ getName()

getName ( )

См. определение в файле activity.php строка 384

◆ getObjectSourceType()

getObjectSourceType ( $objectName,
$fieldName )
protected

См. определение в файле activity.php строка 1143

◆ getPropertiesMap()

getPropertiesMap ( array $documentType,
array $context = [] )
staticprotected

См. определение в файле activity.php строка 152

◆ getPropertyBaseType()

getPropertyBaseType ( $propertyName)

См. определение в файле activity.php строка 197

◆ getPropertyType()

getPropertyType ( $propertyName)

См. определение в файле activity.php строка 236

◆ getRawProperty()

getRawProperty ( $name)
protected

См. определение в файле activity.php строка 1018

◆ getRootActivity()

getRootActivity ( )

См. определение в файле activity.php строка 389

◆ getRuntimeProperty()

getRuntimeProperty ( $object,
$field,
CBPActivity $ownerActivity )

См. определение в файле activity.php строка 829

◆ getStorage()

getStorage ( )
protected

См. определение в файле activity.php строка 1760

◆ getTemplatePropertyType()

getTemplatePropertyType ( $propertyName)

См. определение в файле activity.php строка 203

◆ getTemplateUserId()

getTemplateUserId ( )
Возвращает
int

См. определение в файле activity.php строка 134

◆ getTitle()

getTitle ( )

См. определение в файле activity.php строка 1681

◆ getVariable()

getVariable ( $name)

См. определение в файле activity.php строка 323

◆ getVariableBaseType()

getVariableBaseType ( $variableName)

См. определение в файле activity.php строка 284

◆ getVariableType()

getVariableType ( $name)

См. определение в файле activity.php строка 335

◆ getWorkflowInstanceId()

getWorkflowInstanceId ( )

См. определение в файле activity.php строка 415

◆ getWorkflowStatus()

getWorkflowStatus ( )
Возвращает
int

См. определение в файле activity.php строка 97

◆ getWorkflowTemplateId()

getWorkflowTemplateId ( )
Возвращает
int

См. определение в файле activity.php строка 119

◆ handleFault()

handleFault ( Exception $exception)

См. определение в файле activity.php строка 1209

◆ includeActivityFile()

includeActivityFile ( $code)
static

См. определение в файле activity.php строка 1348

◆ initialize()

initialize ( )

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 1185

◆ initializeFromArray()

initializeFromArray ( $arParams)

См. определение в файле activity.php строка 1409

◆ isActivated()

isActivated ( )

См. определение в файле activity.php строка 1698

◆ isExpression()

isExpression ( $text)
static

См. определение в файле activity.php строка 1718

◆ isPropertyExists()

isPropertyExists ( $name)

См. определение в файле activity.php строка 1068

◆ isVariableExists()

isVariableExists ( $name)

См. определение в файле activity.php строка 371

◆ load()

load ( $stream)
static

См. определение в файле activity.php строка 1227

◆ markCanceled()

markCanceled ( $arEventParameters = [])

См. определение в файле activity.php строка 1425

◆ markCompleted()

markCompleted ( $arEventParameters = [])

См. определение в файле activity.php строка 1439

◆ markFaulted()

markFaulted ( $arEventParameters = [])

См. определение в файле activity.php строка 1445

◆ parseExpression()

parseExpression ( $exp)
static

См. определение в файле activity.php строка 1736

◆ parseValue()

parseValue ( $value,
$convertToType = null,
?callable $decorator = null )

См. определение в файле activity.php строка 1011

◆ pullProperties()

pullProperties ( )

См. определение в файле activity.php строка 1052

◆ reInitialize()

reInitialize ( )
protected

Переопределяется в CBPRestActivity.

См. определение в файле activity.php строка 1198

◆ removeStatusChangeHandler()

removeStatusChangeHandler ( $event,
$eventHandler )

См. определение в файле activity.php строка 1293

◆ renderResult()

renderResult ( array $result,
string $workflowId,
int $userId )
static

См. определение в файле activity.php строка 1522

◆ setActivated()

setActivated ( bool $activated)

См. определение в файле activity.php строка 1693

◆ setDocumentId()

setDocumentId ( $documentId)
Аргументы
array$documentId
Возвращает
void

См. определение в файле activity.php строка 61

◆ setDocumentType()

setDocumentType ( array $documentType)

См. определение в файле activity.php строка 84

◆ setFieldTypes()

setFieldTypes ( array $arFieldTypes = [])

См. определение в файле activity.php строка 107

◆ setProperties()

setProperties ( $arProperties = array())

См. определение в файле activity.php строка 214

◆ setPropertiesTypes()

setPropertiesTypes ( $arPropertiesTypes = array())

См. определение в файле activity.php строка 225

◆ setStatus()

setStatus ( $newStatus,
$arEventParameters = array() )

См. определение в файле activity.php строка 1318

◆ setVariable()

setVariable ( $name,
$value )

См. определение в файле activity.php строка 317

◆ setVariables()

setVariables ( $variables = [])

См. определение в файле activity.php строка 290

◆ setVariablesTypes()

setVariablesTypes ( $arVariablesTypes = array())

См. определение в файле activity.php строка 307

◆ setWorkflow()

setWorkflow ( CBPWorkflow $workflow)

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 405

◆ setWorkflowStatus()

setWorkflowStatus ( $status)

См. определение в файле activity.php строка 102

◆ toString()

toString ( )

См. определение в файле activity.php строка 1157

◆ trackError()

trackError ( string $errorMsg)
protected

См. определение в файле activity.php строка 1585

◆ unsetWorkflow()

unsetWorkflow ( )

Переопределяется в CBPCompositeActivity.

См. определение в файле activity.php строка 410

◆ validateChild()

validateChild ( $childActivity,
$bFirstChild = false )
static

См. определение в файле activity.php строка 1708

◆ validateProperties()

validateProperties ( $arTestProperties = array(),
CBPWorkflowTemplateUser $user = null )
static

Переопределяется в CBPCompositeActivity и CBPRestActivity.

См. определение в файле activity.php строка 1703

Поля

◆ $activated

bool $activated = true
protected

См. определение в файле activity.php строка 39

◆ $arEventsMap

array $arEventsMap = []

См. определение в файле activity.php строка 43

◆ $arProperties

array $arProperties = []
protected

См. определение в файле activity.php строка 35

◆ $arPropertiesTypes

array $arPropertiesTypes = []
protected

См. определение в файле activity.php строка 36

◆ $executionResult

int $executionResult = CBPActivityExecutionResult::None

См. определение в файле activity.php строка 14

◆ $executionStatus

См. определение в файле activity.php строка 13

◆ $name

string $name = ''
protected

См. определение в файле activity.php строка 38

◆ $parent

CBPActivity $parent = null

См. определение в файле activity.php строка 11

◆ $resultPriority

int $resultPriority = 0
protected

См. определение в файле activity.php строка 45

◆ $workflow

$workflow = null

См. определение в файле activity.php строка 41

◆ CalcInlinePattern

const CalcInlinePattern = '#\{\{=\s*(.*?)\s*\}\}([^\}]|$)#is'

См. определение в файле activity.php строка 33

◆ CalcPattern

const CalcPattern = '#^\s*(=\s*(.*)|\{\{=\s*(.*)\s*\}\})\s*$#is'

См. определение в файле activity.php строка 32

◆ CancelingEvent

const CancelingEvent = 2

См. определение в файле activity.php строка 20

◆ ClosedEvent

const ClosedEvent = 3

См. определение в файле activity.php строка 21

◆ ExecutingEvent

const ExecutingEvent = 1

См. определение в файле activity.php строка 19

◆ FaultingEvent

const FaultingEvent = 4

См. определение в файле activity.php строка 22

◆ StatusChangedEvent

const StatusChangedEvent = 0

См. определение в файле activity.php строка 18

◆ ValueInlinePattern

const ValueInlinePattern = '#'.self::ValueSinglePattern.'#i'

См. определение в файле activity.php строка 28

◆ ValueInternalPattern

const ValueInternalPattern = '\{=\s*([a-z0-9_]+)\s*\:\s*([a-z0-9_\.]+)(\s*>\s*([a-z0-9_\:]+)(\s*,\s*([a-z0-9_]+))?)?\s*\}'

Internal pattern used in calc.php

См. определение в файле activity.php строка 30

◆ ValuePattern

const ValuePattern = '#^\s*'.self::ValueSinglePattern.'\s*$#i'

См. определение в файле activity.php строка 26


Объявления и описания членов класса находятся в файле: