cancel
Showing results for 
Search instead for 
Did you mean: 

How to display custom Stencil forms in Process Tasks within ADF application?

paiyyavj13
Star Contributor
Star Contributor

hi,

I have used the demo app that comes with ADF and have made the demo app talk my Alfresco Processes Services application.

I am able to start my application, but one of my task forms has a custom Stencil component which needs to be displayed.

I get the below error, where "multiple_departments" is the field name in my custom form,

Please provide you views and suggestions... Thank you...

Regards.

14 REPLIES 14

dhrn
Champ in-the-making
Champ in-the-making

eugenio romanoDenys Vuika‌ 

i am getting this error in adf - 2.0

ContainerWidgetComponent.html:17 ERROR ReferenceError: adf is not defined
at FormFieldComponent.hasController (adf-core.umd.js:17579)
at FormFieldComponent.ngOnInit (adf-core.umd.js:17529)
at checkAndUpdateDirectiveInline (core.js:12094)
at checkAndUpdateNodeInline (core.js:13597)
at checkAndUpdateNode (core.js:13540)
at debugCheckAndUpdateNode (core.js:14412)
at debugCheckDirectivesFn (core.js:14353)
at Object.eval [as updateDirectives] (ContainerWidgetComponent.html:17)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:14338)
at checkAndUpdateView (core.js:13507)

 

i am confused now with these tutorials
https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/stencils.md
https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/extensibility.md
which documentation i have to follow?. please give me the correct documentation for this.

<script src="node_modules/ng2-activiti-form/stencils/runtime.ng1.js"></script> 
<script src="node_modules/ng2-activiti-form/stencils/runtime.adf.js"></script>

these lines are deprecated now but still it is there in documentation.

if (adf) {     adf.registerComponent('ng2_component_01', SampleClass1); }
where i have to add?

dvuika
Star Collaborator
Star Collaborator

You need only alfresco-ng2-components/extensibility.md at master · Alfresco/alfresco-ng2-components · GitHub The stencil you are trying to map "must not" have any controllers attached (neither AngularJS nor Angular).

dhrn
Champ in-the-making
Champ in-the-making

thanks Denys Vuika i have removed angular 1 controller in APS, so it is working in ADF. But now In APS it is not working. suggest a solution for this problem.
version:
APS : 1.6.4

dvuika
Star Collaborator
Star Collaborator

We will fix the issue with APS controllers, so that you can still use them in both UIs

santolovic
Champ on-the-rise
Champ on-the-rise

please advise has this issue been solved and how?