|
@@ -338,6 +338,47 @@ func Configure(b *bootstrap.Bootstrapper) {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Workflow
|
|
|
|
|
+ wfParty := b.Party("/wf", crs).AllowMethods(iris.MethodOptions)
|
|
|
|
|
+ {
|
|
|
|
|
+ wfParty.Use(middleware.AuthToken)
|
|
|
|
|
+
|
|
|
|
|
+ wfDefService := service.NewWfDefService()
|
|
|
|
|
+ wfDefApp := mvc.New(wfParty.Party("/def"))
|
|
|
|
|
+ wfDefApp.Register(wfDefService)
|
|
|
|
|
+ wfDefApp.Handle(new(controller.WfDefController))
|
|
|
|
|
+
|
|
|
|
|
+ wfInsService := service.NewWfInsService()
|
|
|
|
|
+ wfInsApp := mvc.New(wfParty.Party("/ins"))
|
|
|
|
|
+ wfInsApp.Register(wfInsService)
|
|
|
|
|
+ wfInsApp.Handle(new(controller.WfInsController))
|
|
|
|
|
+
|
|
|
|
|
+ wfActivityDefService := service.NewWfActivityDefService()
|
|
|
|
|
+ wfActivityDefApp := mvc.New(wfParty.Party("/activity/def"))
|
|
|
|
|
+ wfActivityDefApp.Register(wfActivityDefService)
|
|
|
|
|
+ wfActivityDefApp.Handle(new(controller.WfActivityDefController))
|
|
|
|
|
+
|
|
|
|
|
+ wfActivityInsService := service.NewWfActivityInsService()
|
|
|
|
|
+ wfActivityInsApp := mvc.New(wfParty.Party("/activity/ins"))
|
|
|
|
|
+ wfActivityInsApp.Register(wfActivityInsService)
|
|
|
|
|
+ wfActivityInsApp.Handle(new(controller.WfActivityInsController))
|
|
|
|
|
+
|
|
|
|
|
+ wfActivityActionDefService := service.NewWfActivityActionDefService()
|
|
|
|
|
+ wfActivityActionDefApp := mvc.New(wfParty.Party("/activity/action/def"))
|
|
|
|
|
+ wfActivityActionDefApp.Register(wfActivityActionDefService)
|
|
|
|
|
+ wfActivityActionDefApp.Handle(new(controller.WfActivityActionDefController))
|
|
|
|
|
+
|
|
|
|
|
+ wfActivityActionInsService := service.NewWfActivityActionInsService()
|
|
|
|
|
+ wfActivityActionInsApp := mvc.New(wfParty.Party("/activity/action/ins"))
|
|
|
|
|
+ wfActivityActionInsApp.Register(wfActivityActionInsService)
|
|
|
|
|
+ wfActivityActionInsApp.Handle(new(controller.WfActivityActionInsController))
|
|
|
|
|
+
|
|
|
|
|
+ wfInsAttachService := service.NewWfInsAttachService()
|
|
|
|
|
+ wfInsAttachApp := mvc.New(wfParty.Party("/ins/attach"))
|
|
|
|
|
+ wfInsAttachApp.Register(wfInsAttachService)
|
|
|
|
|
+ wfInsAttachApp.Handle(new(controller.WfInsAttachController))
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// x
|
|
// x
|
|
|
xParty := b.Party("/x", crs).AllowMethods(iris.MethodOptions)
|
|
xParty := b.Party("/x", crs).AllowMethods(iris.MethodOptions)
|
|
|
{
|
|
{
|