[midPoint-git] [Evolveum/midpoint] 259669: Rework the workflow engine
mederly
noreply at github.com
Wed Jun 5 16:58:51 CEST 2019
Branch: refs/heads/feature/gui-wrapper
Home: https://github.com/Evolveum/midpoint
Commit: 259669fa662d6bb352431c25a32831a1a3855483
https://github.com/Evolveum/midpoint/commit/259669fa662d6bb352431c25a32831a1a3855483
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2019-06-05 (Wed, 05 Jun 2019)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/workflow/PageWorkItem.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/workflow/PageWorkItems.java
M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.java
M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/util/CloneUtil.java
M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/xml/XmlTypeConverter.java
M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/CaseWorkItemUtil.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/WfContextUtil.java
M infra/schema/src/main/resources/xml/ns/public/model/extension-3.xsd
M infra/util/src/main/java/com/evolveum/midpoint/util/caching/AbstractThreadLocalCache.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/WorkflowService.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractInternalModelIntegrationTest.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
R model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/WorkflowListener.java
A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/WorkflowListenerImpl.java
R model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/CompleteAction.java
R model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/ProcessListener.java
R model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/WorkItemListener.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/WorkflowListener.java
M model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/WorkflowManager.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/CancelCaseRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/ClaimWorkItemsRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/CompleteWorkItemsRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/DelegateWorkItemsRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/OpenCaseRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/ReleaseWorkItemsRequest.java
A model/workflow-api/src/main/java/com/evolveum/midpoint/wf/api/request/Request.java
M model/workflow-api/src/main/java/com/evolveum/midpoint/wf/util/ApprovalUtils.java
M model/workflow-impl/pom.xml
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/ApprovalSchemaExecutionInformationHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/WorkflowManagerImpl.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/access/CaseManager.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/access/ProcessInstanceManager.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/access/WorkItemManager.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/AuditHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/EngineInvocationContext.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/NotificationHelper.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/TriggerHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/WorkflowEngine.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/Action.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/ActionFactory.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/CancelCaseAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/ClaimWorkItemsAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/CloseCaseAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/CloseStageAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/CompleteWorkItemsAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/DelegateWorkItemsAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/InternalAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/OpenCaseAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/OpenStageAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/ReleaseWorkItemsAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/RequestedAction.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/helpers/AuditHelper.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/helpers/DelayedNotification.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/helpers/NotificationHelper.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/helpers/TriggerHelper.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/helpers/WorkItemHelper.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/execution/CaseOperationExecutionTaskHandler.java
A model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/execution/ExecutionHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/hook/WfHook.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processes/common/StageComputeHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processes/common/WfTimedActionTriggerHandler.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/ModelHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/StartInstruction.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/general/GeneralChangeProcessor.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/general/scenarios/BaseGcpScenarioBean.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/ApprovalMetadataHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/PcpGeneralHelper.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/PrimaryChangeProcessor.java
M model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/aspect/PrimaryChangeAspectHelper.java
R model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/tasks/CaseOperationExecutionTaskHandler.java
A model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/AbstractWfTest.java
M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/WfTestHelper.java
M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/legacy/AbstractWfTestLegacy.java
M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/policy/AbstractWfTestPolicy.java
M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/policy/lifecycle/global/TestLifecycleGlobal.java
M model/workflow-impl/src/test/java/com/evolveum/midpoint/wf/impl/policy/other/TestDelegation.java
A model/workflow-impl/src/test/resources/common/024-archetype-operation-request.xml
A model/workflow-impl/src/test/resources/common/025-archetype-approval-case.xml
A model/workflow-impl/src/test/resources/common/041-role-approver.xml
M model/workflow-impl/src/test/resources/common/user-administrator.xml
R model/workflow-impl/src/test/resources/policy/041-role-approver.xml
R model/workflow-impl/src/test/resources/policy/role-superuser.xml
R model/workflow-impl/src/test/resources/policy/user-administrator.xml
R model/workflow-impl/src/test/resources/policy/user-jack.xml
M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
Log Message:
-----------
Rework the workflow engine
This is a major rework of the workflow engine (i.e. Activiti
replacement).
The primary goal was to avoid race conditions by executing all
changes in a single repo MODIFY operation while checking the
"CaseType version not changed" precondition.
The secondary goal was to make the code more modular and therefore
maintainable. See Action and Request class trees.
Commit: 9a5d5754b2fcb4e62796a978a35fc0a5c3d1528d
https://github.com/Evolveum/midpoint/commit/9a5d5754b2fcb4e62796a978a35fc0a5c3d1528d
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2019-06-05 (Wed, 05 Jun 2019)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/ComponentConstants.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebComponentUtil.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/wf/SwitchableApprovalProcessPreviewsPanel.html
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/wf/SwitchableApprovalProcessPreviewsPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/CaseSummaryPanel.java
A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/ChildCasesTabPanel.html
A gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/ChildCasesTabPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/OperationRequestCaseTabPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/PageCase.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/PageCaseWorkItems.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/PageCases.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/reports/component/AuditLogViewerPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/PageTaskEdit.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/dto/TaskDto.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/workflow/WorkItemDetailsPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/workflow/dto/ApprovalStageExecutionInformationDto.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/session/UserProfileStorage.java
M gui/admin-gui/src/main/resources/initial-objects/025-archetype-approval-case.xml
M gui/admin-gui/src/main/resources/localization/Midpoint.properties
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/WfContextUtil.java
Log Message:
-----------
Merge remote-tracking branch 'origin/feature/gui-wrapper' into feature/gui-wrapper
Compare: https://github.com/Evolveum/midpoint/compare/d7597e9f1a2b...9a5d5754b2fc
More information about the midPoint-svn
mailing list