Skip to content

Commit b67cd63

Browse files
Ticket #93 : Update website
1 parent 64d4060 commit b67cd63

95 files changed

Lines changed: 700 additions & 668 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CaseManagement
22

3+
<img width="100px" src="https://github.com/simpleidserver/CaseManagement/tree/release/1.0.3/logos/logo.png" />
4+
35
CaseManagement is an open source framework enabling any DOTNETCORE applications to host a CMMN / WS-HumanTask or BPMN engine.
46
It supports most of the concepts introduced by CMMN1.1, BPMN2.0.2 and WS-HumanTask.
57

logos/logo.png

393 KB
Loading

src/CaseManagement.HumanTask/Domains/HumanTaskDef/HumanTaskDefinitionAggregate.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public HumanTaskDefinitionAggregate()
2424
PresentationParameters = new List<PresentationParameter>();
2525
}
2626

27+
public int NbInstances { get; set; }
2728
public DateTime CreateDateTime { get; set; }
2829
public DateTime UpdateDateTime { get; set; }
2930
/// <summary>
@@ -98,6 +99,7 @@ public override object Clone()
9899
CreateDateTime = CreateDateTime,
99100
UpdateDateTime = UpdateDateTime,
100101
Name = Name,
102+
NbInstances = NbInstances,
101103
AggregateId = AggregateId,
102104
Version = Version,
103105
ActualOwnerRequired = ActualOwnerRequired,
@@ -199,6 +201,11 @@ public string AddCompletionDeadLine(HumanTaskDefinitionDeadLine deadLine)
199201
return id;
200202
}
201203

204+
public void IncrementInstance()
205+
{
206+
NbInstances++;
207+
}
208+
202209
public void DeleteCompletionDeadLine(string deadLineId)
203210
{
204211
var evt = new HumanTaskDefCompletionDeadLineRemovedEvent(Guid.NewGuid().ToString(), AggregateId, Version + 1, deadLineId, DateTime.UtcNow);

src/CaseManagement.HumanTask/HumanTaskDef/Results/HumanTaskDefResult.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class HumanTaskDefResult
1010
public string Id { get; set; }
1111
public int Version { get; set; }
1212
public string Name { get; set; }
13+
public int NbInstances { get; set; }
1314
public DateTime UpdateDateTime { get; set; }
1415
public DateTime CreateDateTime { get; set; }
1516
public bool ActualOwnerRequired { get; set; }
@@ -33,6 +34,7 @@ public static HumanTaskDefResult ToDto(HumanTaskDefinitionAggregate humanTaskDef
3334
UpdateDateTime = humanTaskDef.UpdateDateTime,
3435
CreateDateTime = humanTaskDef.CreateDateTime,
3536
Name = humanTaskDef.Name,
37+
NbInstances = humanTaskDef.NbInstances,
3638
Priority = humanTaskDef.Priority,
3739
Version = humanTaskDef.Version,
3840
SearchBy = humanTaskDef.SearchBy,

src/CaseManagement.HumanTask/HumanTaskInstance/Commands/Handlers/CreateHumanTaskInstanceCommandHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace CaseManagement.HumanTask.HumanTaskInstance.Commands.Handlers
1717
public class CreateHumanTaskInstanceCommandHandler : IRequestHandler<CreateHumanTaskInstanceCommand, string>
1818
{
1919
private readonly IHumanTaskDefQueryRepository _humanTaskDefQueryRepository;
20+
private readonly IHumanTaskDefCommandRepository _humanTaskDefCommandRepository;
2021
private readonly IHumanTaskInstanceCommandRepository _humanTaskInstanceCommandRepository;
2122
private readonly IAuthorizationHelper _authorizationHelper;
2223
private readonly IParameterParser _parameterParser;
@@ -26,12 +27,14 @@ public class CreateHumanTaskInstanceCommandHandler : IRequestHandler<CreateHuman
2627
public CreateHumanTaskInstanceCommandHandler(
2728
IHumanTaskDefQueryRepository humanTaskDefQueryRepository,
2829
IHumanTaskInstanceCommandRepository humanTaskInstanceCommandRepository,
30+
IHumanTaskDefCommandRepository humanTaskDefCommandRepository,
2931
IAuthorizationHelper authorizationHelper,
3032
IParameterParser parameterParser,
3133
IDeadlineParser deadLineParser,
3234
ILogger<CreateHumanTaskInstanceCommandHandler> logger)
3335
{
3436
_humanTaskDefQueryRepository = humanTaskDefQueryRepository;
37+
_humanTaskDefCommandRepository = humanTaskDefCommandRepository;
3538
_humanTaskInstanceCommandRepository = humanTaskInstanceCommandRepository;
3639
_authorizationHelper = authorizationHelper;
3740
_parameterParser = parameterParser;
@@ -103,6 +106,8 @@ public async Task<string> Handle(CreateHumanTaskInstanceCommand request, Cancell
103106
}).ToList());
104107
await _humanTaskInstanceCommandRepository.Add(humanTaskInstance, cancellationToken);
105108
await _humanTaskInstanceCommandRepository.SaveChanges(cancellationToken);
109+
humanTaskDef.IncrementInstance();
110+
await _humanTaskDefCommandRepository.Update(humanTaskDef, cancellationToken);
106111
return humanTaskInstance.AggregateId;
107112
}
108113

src/CaseManagement.Website/angularApp/app/app.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<mat-list-item>CaseManagement <button (click)="drawer.close()" mat-icon-button><mat-icon>close</mat-icon></button></mat-list-item>
55
<a [routerLink]="['/bpmns']" mat-list-item href="#">{{ "MENU.PROCESSES" | translate }}</a>
66
<a [routerLink]="['/cmmns']" mat-list-item href="#">{{ "MENU.CASES" | translate }}</a>
7+
<a [routerLink]="['/humantasks']" mat-list-item href="#">{{ "MENU.HUMANTASKS" | translate }}</a>
78
</mat-list>
89
</mat-drawer>
910
<mat-toolbar class="app-header">
@@ -16,6 +17,7 @@
1617
<div fxShow="true" fxHide.lt-md="true">
1718
<a [routerLink]="['/bpmns']" mat-button href="#">{{ "MENU.PROCESSES" | translate }}</a>
1819
<a [routerLink]="['/cmmns']" mat-button href="#">{{ "MENU.CASES" | translate }}</a>
20+
<a [routerLink]="['/humantasks']" mat-button href="#">{{ "MENU.HUMANTASKS" | translate }}</a>
1921
</div>
2022
<span class="navigation-spacer"></span>
2123
<div fxShow="true" fxHide.lt-md="true">

src/CaseManagement.Website/angularApp/app/humantasks/humantaskdefs/humantaskdefs.module.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/CaseManagement.Website/angularApp/app/humantasks/humantaskdefs/humantaskdefs.module.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/CaseManagement.Website/angularApp/app/humantasks/humantaskdefs/humantaskdefs.module.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/CaseManagement.Website/angularApp/app/humantasks/humantaskdefs/humantaskdefs.routes.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)