Custom UI component process link
A UI component process link renders a custom Angular component instead of a Form.io form, giving full control over the user interface for user tasks and start events.
interface FormCustomComponent {
taskInstanceId: string | null;
processDefinitionKey: string | null;
documentDefinitionName: string | null;
documentId: string | null;
submittedEvent: EventEmitter<any>;
}app.module.ts
app.module.ts...
// import FORM_CUSTOM_COMPONENT_TOKEN
import { FORM_CUSTOM_COMPONENT_TOKEN } from '@valtimo/process-link';
...
// import your custom component from wherever you have defined it
import { MyCustomComponent } from 'component-path';
...
// add this to the providers array of the AppModule
...
{
provide: FORM_CUSTOM_COMPONENT_TOKEN,
useValue: {
'my-custom-component': MyCustomComponent,
},
},
...
export class AppModule {
...
}Last updated