@atlas-engine/admin_domain.repository.embedded
Advanced tools
Comparing version 0.2.2-feature-4957dc-k7p0ul8g to 0.2.2-feature-4f330a-k7x8gsxf
@@ -5,6 +5,7 @@ define(["require", "exports", "@atlas-engine/admin_domain.contracts"], function (require, exports, admin_domain_contracts_1) { | ||
class ProcessInstanceRepository { | ||
constructor(executeProcessService, processInstanceManagementService, processInstanceRuntimeService) { | ||
constructor(executeProcessService, processInstanceManagementService, processInstanceRuntimeService, resumeProcessService) { | ||
this.executeProcessService = executeProcessService; | ||
this.processInstanceManagementService = processInstanceManagementService; | ||
this.processInstanceRuntimeService = processInstanceRuntimeService; | ||
this.resumeProcessService = resumeProcessService; | ||
} | ||
@@ -32,2 +33,5 @@ async query(identity, query, offset, limit) { | ||
} | ||
async retryProcessInstance(identity, processInstanceId) { | ||
return this.resumeProcessService.retryProcessInstance(identity, processInstanceId); | ||
} | ||
mapProcessInstance(data) { | ||
@@ -34,0 +38,0 @@ return new admin_domain_contracts_1.DataModels.ProcessInstances.ProcessInstance(data); |
@@ -5,6 +5,7 @@ "use strict"; | ||
class ProcessInstanceRepository { | ||
constructor(executeProcessService, processInstanceManagementService, processInstanceRuntimeService) { | ||
constructor(executeProcessService, processInstanceManagementService, processInstanceRuntimeService, resumeProcessService) { | ||
this.executeProcessService = executeProcessService; | ||
this.processInstanceManagementService = processInstanceManagementService; | ||
this.processInstanceRuntimeService = processInstanceRuntimeService; | ||
this.resumeProcessService = resumeProcessService; | ||
} | ||
@@ -32,2 +33,5 @@ async query(identity, query, offset, limit) { | ||
} | ||
async retryProcessInstance(identity, processInstanceId) { | ||
return this.resumeProcessService.retryProcessInstance(identity, processInstanceId); | ||
} | ||
mapProcessInstance(data) { | ||
@@ -34,0 +38,0 @@ return new admin_domain_contracts_1.DataModels.ProcessInstances.ProcessInstance(data); |
import { IIdentity } from '@atlas-engine/iam.contracts'; | ||
import { DataModels, Repositories } from '@atlas-engine/admin_domain.contracts'; | ||
import { IExecuteProcessService, IProcessInstanceManagementService } from '@atlas-engine/core_domain.contracts'; | ||
import { IExecuteProcessService, IProcessInstanceManagementService, IResumeProcessService } from '@atlas-engine/core_domain.contracts'; | ||
import { Services as RuntimeServices } from '@atlas-engine/runtime_domain.contracts'; | ||
@@ -9,3 +9,4 @@ export declare class ProcessInstanceRepository implements Repositories.IProcessInstanceRepository { | ||
private readonly processInstanceRuntimeService; | ||
constructor(executeProcessService: IExecuteProcessService, processInstanceManagementService: IProcessInstanceManagementService, processInstanceRuntimeService: RuntimeServices.IProcessInstanceService); | ||
private readonly resumeProcessService; | ||
constructor(executeProcessService: IExecuteProcessService, processInstanceManagementService: IProcessInstanceManagementService, processInstanceRuntimeService: RuntimeServices.IProcessInstanceService, resumeProcessService: IResumeProcessService); | ||
query(identity: IIdentity, query: DataModels.ProcessInstances.ProcessInstanceQuery, offset?: number, limit?: number): Promise<DataModels.ProcessInstances.ProcessInstanceList>; | ||
@@ -15,4 +16,5 @@ startProcessInstance<TPayload>(identity: IIdentity, options: DataModels.ProcessInstances.ProcessStartRequest<TPayload>): Promise<DataModels.ProcessInstances.ProcessStartResponse>; | ||
terminateProcessInstance(identity: IIdentity, processInstanceId: string): Promise<void>; | ||
retryProcessInstance(identity: IIdentity, processInstanceId: string): Promise<void>; | ||
private mapProcessInstance; | ||
private mapProcessStartResult; | ||
} |
@@ -41,3 +41,3 @@ 'use strict'; | ||
.register('AdminDomain.ProcessInstanceRepository', ProcessInstanceRepository) | ||
.dependencies('ExecuteProcessService', 'ProcessInstanceManagementService', 'RuntimeDomain.ProcessInstanceService') | ||
.dependencies('ExecuteProcessService', 'ProcessInstanceManagementService', 'RuntimeDomain.ProcessInstanceService', 'ResumeProcessService') | ||
.singleton(); | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "@atlas-engine/admin_domain.repository.embedded", | ||
"version": "0.2.2-feature-4957dc-k7p0ul8g", | ||
"version": "0.2.2-feature-4f330a-k7x8gsxf", | ||
"description": "Contains the repository that the admin domain uses for accessing the Core- and Runtime- domains in an embedded application.", | ||
@@ -24,3 +24,3 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@atlas-engine/admin_domain.contracts": "^0.2.0", | ||
"@atlas-engine/admin_domain.contracts": "feature~add_retry_methods", | ||
"@atlas-engine/error_provider": "^1.0.0", | ||
@@ -31,7 +31,7 @@ "@atlas-engine/iam.contracts": "^0.1.0", | ||
"devDependencies": { | ||
"@atlas-engine/ci_tools": "^2.5.1", | ||
"@atlas-engine/core_domain.contracts": "^0.4.0", | ||
"@atlas-engine/ci_tools": "^3.0.0", | ||
"@atlas-engine/core_domain.contracts": "feature~add_retry_methods", | ||
"@atlas-engine/eslint-config": "^1.0.0", | ||
"@atlas-engine/process_model": "^0.1.0", | ||
"@atlas-engine/runtime_domain.contracts": "^0.5.0", | ||
"@atlas-engine/runtime_domain.contracts": "feature~add_reset_methods", | ||
"@types/node": "^12.11.7", | ||
@@ -38,0 +38,0 @@ "eslint": "^6.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95709
982
- Removed@atlas-engine/admin_domain.contracts@0.2.9(transitive)
Updated@atlas-engine/admin_domain.contracts@feature~add_retry_methods