102 | | * Each node will be defined something like N().handle(status = "status name", resource = "org_orgnisation", args = "create") |
103 | | * Here {{{.handle(status = "status name",args = "create", resource = "org_orgnisation")}}} will contain the action that will update the current node's status i.e only after clicking on this particular action user will be able to achieve the next node. |
| 102 | * Each node will be defined something like N("status name").handle(next_status = "next status name", controller = "org", function = "organization", args = "create") |
| 103 | * Here {{{.handle(next_status = "status name",args = "create", controller = "org", function = "organization")}}} will contain the action that will update the current node's status to the next sataus i.e only after clicking on this particular action user will be able to achieve the next node. |
| 119 | |
| 120 | return N("new").handle(controller = "org", |
| 121 | function = "organisation", |
| 122 | args = "create", |
| 123 | next_status = "add organisation get", |
| 124 | http = "GET") & \ |
| 125 | N("add organisation get").handle(controller = "org", |
| 126 | function = "organisation", |
| 127 | args = "create", |
| 128 | next_status = "add organisation post", |
| 129 | http = "POST") & \ |
| 130 | N("add organisation post").handle(controller = "org", |
| 131 | function = "office", |
| 132 | args = [1,"update"], |
| 133 | next_status = "add office")\ |
| 134 | .handle(controller = "org", |
| 135 | function = "facility", |
| 136 | next_status = "add facility", |
| 137 | postp = postp) & \ |
| 138 | ( N("add office").handle(controller = "hrm", |
| 139 | function = "staff", |
| 140 | args = "create", |
| 141 | next_status = "add staff") | \ |
| 142 | N("add facility").handle(controller = "hrm", |
| 143 | function = "staff", |
| 144 | args = "create", |
| 145 | next_status = "add staff") ) & \ |
| 146 | Exit() |
118 | | return N().handle(resource = "org_organisation", args = "create", status = "add organisation get", http = "GET") & \ |
119 | | N().handle(resource = "org_organisation", args = "create", status = "add organisation post", http = "POST") & \ |
120 | | (N().handle(resource = "org_office", args = [1,"update"], status = "add office") | \ |
121 | | N().handle(resource = "org_facility", args = "create", status = "add facility") )& \ |
122 | | N().handle(resource = "hrm_human_resource", args = "create", status = "add staff") & Exit() |
| 148 | |