action perform action event action perform defin statediagram defin activitydiagram lp statediagram granular type statement lp activitydiagram granular type statement lp statediagram local end method lp activitydiagram local end method model state machin factori build composit state target endif 