Example #1
0
def run_dataAssociation():
    l1 = Linkable(id='Activity_1', name='Linkable 01')
    l2 = Linkable(id='Gateway', name='Linkable 02')
    d = DataAssociation(id="haha", source=l1, target=l2, direction=0)
    print(et.tostring(d.serialize()))
Example #2
0
def run_test():
    l = Linkable(id='whatever')
    print(et.tostring(l.serialize()))
Example #3
0
def run_flow_test():
    l1 = Linkable(id='Activity_1', name='Linkable 01')
    l2 = Linkable(id='Gateway', name='Linkable 02')
    f = Association(id="id1", source=l1, target=l2)
    # f.serialize()
    print(et.tostring(f.serialize()))