Commit 6cc48e4f authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add artifact and method steps to method info

parent dc9723df
......@@ -143,6 +143,19 @@
<th scope="row">Method Description</th>
<td class="show-new-lines">{{modalElement.businessObject.get('method').get('description')}}</td>
</tr>
<tr>
<th scope="row">Method Steps</th>
<td>
<ul class="list-group">
<li class="list-group-item" *ngFor="let step of modalDevelopmentMethod.steps; let index = index">
<h5>{{index + 1}}. {{step.name}}</h5>
<p class="show-new-lines">{{step.description}}</p>
<b>Artifact: {{step.artifact.name}}</b>
<div class="show-new-lines">{{step.artifact.description}}</div>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
......
......@@ -28,6 +28,7 @@ export class BmProcessDiagramComponent implements OnInit, AfterContentInit, OnDe
});
modalElement;
modalDevelopmentMethod: DevelopmentMethod;
modalProcessPatterns: ProcessPattern[];
private modalReference: NgbModalRef;
......@@ -151,7 +152,12 @@ export class BmProcessDiagramComponent implements OnInit, AfterContentInit, OnDe
openMethodInfoModal(methodElement) {
this.modalElement = methodElement;
this.modalReference = this.modalService.open(this.methodInfoModal, {size: 'lg'});
this.developmentMethodService.getDevelopmentMethod(methodElement.businessObject.get('method').get('id')).then(
(method) => {
this.modalDevelopmentMethod = method;
this.modalReference = this.modalService.open(this.methodInfoModal, {size: 'lg'});
}
);
}
openSelectProcessPatternModal(callActivityElement) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment