Codeunit 1501 Workflow Management

Base Application, System.Automation

src/Layers/W1/BaseApp/System/Workflow/WorkflowManagement.Codeunit.al33 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

TrackWorkflow line 44

  1. 48callsTable 1504 Workflow Step Instance MoveForward
  2. 50callsUpdateRelatedTableValues
  3. 52callsIsWorkflowCompleted
  4. 53callsArchiveWorkflowInstance

FindWorkflowStepInstance line 56

  1. 58callsFindWorkflowStepInstanceWithOptionalWorkflowStart

CanExecuteWorkflow line 61

  1. 65callsFindWorkflowStepInstanceWithOptionalWorkflowStart

FindWorkflowStepInstanceWithOptionalWorkflowStart line 68, local

  1. 95raisesOnFindWorkflowStepInstanceWithOptionalWorkflowStartOnAfterSetWorkflowStepInstanceLoopFi1tersWhenNotStartWorkFlow
  2. 108raisesOnFindWorkflowStepInstanceWithOptionalWorkflowStartOnAfterSetWorkflowStepInstanceLoopFi1ters
  3. 136callsTable 1504 Workflow Step Instance FindWorkflowRules
  4. 137callsEvaluateCondition
  5. 139callsGetTelemetryDimensions
  6. 139callsTable 1504 Workflow Step Instance ToString
  7. 150callsGetTelemetryDimensions
  8. 171callsFindMatchingWorkflowStepInstance
  9. 172callsGetTelemetryDimensions
  10. 172callsTable 1504 Workflow Step Instance ToString
  11. 181callsFindWorkflow
  12. 183callsInstantiateWorkflow
  13. 185callsGetTelemetryDimensions
  14. 185callsTable 1504 Workflow Step Instance ToString

MarkChildrenStatus line 194

  1. 202writesTable 1504 Workflow Step Instance ModifyAll

MarkSiblingStatus line 205

  1. 214writesTable 1504 Workflow Step Instance ModifyAll

UpdateStatus line 217

  1. 220writesTable 1504 Workflow Step Instance Modify(true)
  2. 222callsMarkChildrenStatus
  3. 224callsMarkSiblingStatus

FindWorkflow line 227

  1. 248raisesOnAfterSetFilterWorkflowStep
  2. 253callsTable 1502 Workflow Step SetFilters
  3. 254callsEvaluateCondition

WorkflowExists line 264

  1. 272callsFindWorkflow

InstantiateWorkflow line 275, local

  1. 277callsTable 1501 Workflow CreateInstance

UpdateRelatedTableValues line 282, local

  1. 289callsTable 1506 Workflow Table Relation Value UpdateRelationValue

FindMatchingWorkflowStepInstance line 293, local

  1. 304callsTable 1504 Workflow Step Instance FindWorkflowRules
  2. 305callsTable 1504 Workflow Step Instance MatchesRecordValues
  3. 306callsEvaluateCondition

EvaluateCondition line 312, local

  1. 319callsCodeunit 4100 Temp Blob FromRecord
  2. 320callsEvaluateConditionOnTable
  3. 321callsEvaluateConditionsOnRelatedTables
  4. 325callsEvaluateRules
  5. 327raisesOnAfterEvaluateCondition

EvaluateConditionOnTable line 331, local

  1. 339callsCodeunit 1530 Request Page Parameters Helper ConvertParametersToFilters

EvaluateRules line 350, local

  1. 358callsTable 1524 Workflow Rule EvaluateRule

ArchiveWorkflowInstance line 374

  1. 383callsGetTelemetryDimensions
  2. 383callsTable 1504 Workflow Step Instance ToString
  3. 394callsCreateWorkflowStepArgumentArchive
  4. 395writesTable 1523 Workflow Step Argument Delete(true)
  5. 397writesTable 1530 Workflow Step Instance Archive Insert
  6. 400writesTable 1504 Workflow Step Instance DeleteAll(true)
  7. 409writesTable 1526 Workflow Record Change Archive Insert
  8. 410writesTable 1526 Workflow Record Change Archive Modify
  9. 413writesTable 1525 Workflow - Record Change DeleteAll(true)

EvaluateConditionsOnRelatedTables line 417, local

  1. 432callsCodeunit 1530 Request Page Parameters Helper ConvertParametersToFilters
  2. 433callsApplyRelationshipFilters

FindEventWorkflowStepInstance line 470

  1. 479callsGetTelemetryDimensions
  2. 486callsFindWorkflowStepInstance

HandleEvent line 489

  1. 491callsHandleEventWithxRec

HandleEventWithxRec line 494

  1. 502callsGetTelemetryDimensions
  2. 512raisesOnBeforeHandleEventWithxRecIsHandled
  3. 520callsFindEventWorkflowStepInstance
  4. 521callsExecuteResponses
  5. 522callsCodeunit 8703 Feature Telemetry LogUsage

HandleEventOnKnownWorkflowInstance line 528

  1. 530callsHandleEventWithxRecOnKnownWorkflowInstance

HandleEventWithxRecOnKnownWorkflowInstance line 533

  1. 543callsGetTelemetryDimensions
  2. 554callsTable 1504 Workflow Step Instance FindWorkflowRules
  3. 555callsEvaluateCondition
  4. 562callsGetTelemetryDimensions
  5. 562callsTable 1504 Workflow Step Instance ToString
  6. 565callsExecuteResponses
  7. 567callsGetTelemetryDimensions
  8. 571callsGetTelemetryDimensions

ExecuteResponses line 575

  1. 582callsCanExecuteEvent
  2. 583callsStoreEventForLaterProcessing
  3. 587writesTable 1504 Workflow Step Instance Modify(true)
  4. 595callsUpdateStatus
  5. 598callsUpdateStepAndRelatedTableData
  6. 600callsChangeStatusForResponsesAndEvents
  7. 604callsFindResponse
  8. 605callsUpdateStepAndRelatedTableData
  9. 607callsCodeunit 1521 Workflow Response Handling ExecuteResponse
  10. 609callsUpdateStatusForResponse
  11. 615callsExecuteQueuedEvents
  12. 617callsIsWorkflowCompleted
  13. 618callsArchiveWorkflowInstance

StoreEventForLaterProcessing line 644, local

  1. 655callsCodeunit 1503 Workflow Record Management BackupRecord
  2. 656callsCodeunit 1503 Workflow Record Management BackupRecord
  3. 657writesTable 1522 Workflow Event Queue Insert(true)

ExecuteQueuedEvents line 660, local

  1. 675callsCodeunit 1503 Workflow Record Management RestoreRecord
  2. 676callsCodeunit 1503 Workflow Record Management RestoreRecord
  3. 680callsTable 1504 Workflow Step Instance FindWorkflowRules
  4. 681callsEvaluateCondition
  5. 682callsExecuteResponses
  6. 683writesTable 1522 Workflow Event Queue Delete

ChangeStatusForResponsesAndEvents line 690

  1. 702writesTable 1504 Workflow Step Instance Modify(true)
  2. 710writesTable 1504 Workflow Step Instance Modify(true)

UpdateStepAndRelatedTableData line 716, local

  1. 719writesTable 1504 Workflow Step Instance Modify(true)
  2. 721callsUpdateRelatedTableValues
  3. 723callsTable 1504 Workflow Step Instance TableRelationValuesExist
  4. 724callsTable 1504 Workflow Step Instance SetTableRelationValues

UpdateStatusForResponse line 727, local

  1. 737callsUpdateStatus
  2. 740callsUpdateStatus
  3. 744callsUpdateStatus

NavigateToWorkflows line 762

  1. 782callsBuildFilter
  2. 783callsBuildFilter
  3. 789runsPage 1501 Workflow
  4. 791callsTable 1500 Workflow Buffer InitBufferForWorkflows
  5. 794callsPage 1500 Workflows SetWorkflowBufferRec

CreateWorkflowStepArgumentArchive line 808, local

  1. 815writesTable 1531 Workflow Step Argument Archive Insert(true)

BuildConditionDisplay line 820

  1. 824callsTable 1502 Workflow Step GetConditionAsDisplayText
  2. 825callsTable 1502 Workflow Step GetRuleAsDisplayText

ClearSupportedCombinations line 836

  1. 843writesTable 1509 WF Event/Response Combination DeleteAll(true)
  2. 849writesTable 1509 WF Event/Response Combination DeleteAll(true)