« Back

Implementation of a modelling tool for a legal scenario

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Implementation of a modelling tool for a legal scenario
community modelling language mechanisms and algorithms documentation
Answer
3/27/14 11:38 AM
For my doctoral thesis I would like to implement a modelling tool in which I can associate paragraphs of laws to tasks in one or more processes.
The paragraphs should be grouped by laws and can be independently changed. Every time the content of a paragraph is changed, the status of the paragraph should change accordingly. The three basic statuses are:
Good - no change has been made since the last check; set by the user.
Changed - the contents of the paragraph has been changed
Unavailable - the contents of the paragraph have been deleted or have not yet been entered.

The tasks in the process should have a status, too, depending on the statuses of the paragraphs related to it:
Good - all the related paragraphs have the status "Good"
Changed - at least one of the related paragraphs has the status "Changed" and none of them has the status "Unavailable"
Unavailable - at least one of the related paragraphs has the status "Unavailable"

Can you please help me with starting the implementation of this basic modelling language and the basic algorithms?

RE: Implementation of a modelling tool for a legal scenario
Answer
7/1/13 12:26 PM as a reply to Anonymous.
During the ADOxx Training on June 25th and 26th 2013 we have started implementing the basic functionality mentioned in the request:

1. We created a new model type called "Law Paragraphs" in an already existing library that included basic process modelling functionality (Sample_BPMN_Library_ADOxx1-3-UL1_1-0.abl)

2. We created a new class, called "Paragraph"and included it in the model type "Law Paragraphs"

3. For the class "Paragraph" we added the attributes "Abstract" - LONGSTRING, "Short Text" - STRING, "Paragraph Status" - ENUMERATION (with values: Good, Changed, Unavailable), "Link to the paragraph" - PROGRAMCALL

4. We added two attributes to the existing class "Task": "Paragraph Status" - ENUMERATION (with values: Good, Changed, Unavailable) and "Related paragraphs" - INTERREF (pointer to the class "Paragraph" in model type "Law Paragraphs")

5. We implemented an event handler for changing the value of the attribute "Paragraph Status" for class "Paragraph" after every change in the value of the attribute "Link to the paragraph"

6. We added the menu item "Update tasks law status" in the menu "BPMN mechanisms" available in the modelling component; by clicking this menu item, the "Paragraph Status" of every
task in the current process model is updated according to the values of the attribute "Paragraph Status" of the "Paragraph" objects referenced by that task.

7. The scripts developed at 5. and 6. have been added to the library's file container and referenced in the library attribute "External Coupling" accordingly.

The application library package, including the AdoScript code implemented can be downloaded below.
Attachments: Sample_Legal_Scenario_ADOxx1-3-UL1_v1-0.zip (2,897.2k)