Hi All (especially Ferdinand if reading
).
I am trying to create a Smart UI workflow workitem controller, following the SDK documentation (/doc/workflow/utils/workitem.extension.controller.html, under Smart UI SDK).
I have following in my -extension.json file
{
"csui/models/server.module/server.module.collection": {
"modules": {
"fcswfstep": {
"version": "1.0"
}
}
},
"csui/models/widget/widget.collection": {
"widgets": {
"fcswfstep": [
"fcswfstep/widgets/wfstep"
]
}
},
"workflow/widgets/workitem/workitem.view": {
"extensions": {
"fcswfstep": [
"fcswfstep/utils/workflowstep.controller"
]
}
}
}
And in my workflowstep.controller.js, I have
define([
'csui/lib/underscore',
'csui/lib/jquery',
'csui/lib/backbone',
'workflow/utils/workitem.extension.controller',
'workflow/widgets/workitem/workitem/impl/footer.view',
'fcswfstep/widgets/wfstep/wfstep.view',
'i18n!fcswfstep/widgets/wfstep/impl/nls/lang',
], function(
_,
$,
Backbone,
WorkItemExtensionController,
FooterView,
wfstepView,
lang
)
When I run grunt to build solution, I receive error
Running "requirejsBundleCheck:all" (requirejsBundleCheck) task
Error: File not found: workflow/utils/workitem.extension.controller.js for id: workflow/utils/workitem.extension.controller
Warning: Checking the bundle indexes failed. Use --force to continue.
If I modify config-build.js to add_ workflow: '../lib/src/workflow'_, things change, with error now
Module fcswfstep/utils/workflowstep.controller depends on workflow/utils/workitem.extension.controller, which is not public; it does not occur in any foreign bundle index
What steps are we missing to utilise the worktiem controller?
Regards,
Disha