What's the right way to find patterns in models?

by Zarif   Last Updated December 18, 2017 09:05 AM

First of all, I'd like to apologize if this is not the right community to ask this question.

I have to find predetermined patterns in business process models and I'm not sure whether I have chosen the right solution for this. The input is a business process and the output is a list with patterns in the business process. Right now, I have converted both a model and a pattern into a json file. Next, I want to compare both json files and see if the pattern is present in the model using foreach and if statements. The pattern matching will be done in C#. Is this the right approach? I've added a snippet of the json files below.

Business process:

{
    "Events": [
    {
        "ID": 1,
        "Name": "Selling order",
        "Type": "agreement"
    },
    {
        "ID": 2,
        "Name": "Delivery",
        "Type": "delivery"
    }],
    "Roles": [
    {
        "Name": "Organization X",
        "Type": "customer",
        "RelationType": "party",
        "RelationWithEventID": 1
    }],
        [...]

}

Pattern:

{
    "Events": [
    {
        "Type": "agreement"
    }],
    "Roles": [
    {
        "RelationType": "party"
    }]
}


Related Questions





Haskell's ':' operator

Updated December 03, 2017 19:05 PM

Comparing articles from various web-stores

Updated December 03, 2017 19:05 PM