# ----------------------------------------------------------------------- # ---------------- CreateInstance EVENT ----------------------------- # ----------------------------------------------------------------------- # ON_EVENT "CreateInstance" { # SETG id_InstId: (instid) # SETG id_ClassId: (classid) # SETG id_ModelId: (modelid) # SETG id_RealClassId: (realclassid) # SETG id_RealInstId: (realinstanceid) # } CC "Core" GET_CLASS_ID classname:"Task" SET n_TaskClassId:(classid) IF (n_TaskClassId=id_ClassId) { # ---- Get the Attribute value of instanced object with Attributename "Name" and Set the result to "s_startName" CC "Core" GET_ATTR_VAL objid:(id_InstId) attrname:"Name" #-->RESULT ecode:intValue val:anyValue SET s_startName: (val) # ---- Set value of "s_startName" to the Attribute Value of Attribute "StartName" CC "Core" SET_ATTR_VAL objid:(id_InstId) attrname:"StartName" val:(s_startName) #-->RESULT ecode:intValue # ---- Set the Attribute value of Attribute "Accept all changes to object" to "Yes" CC "Core" SET_ATTR_VAL objid: (id_InstId) attrname: "Accept all changes to object" val:"Yes" #-->RESULT ecode:intValue attrid:id }