cancel
Showing results for 
Search instead for 
Did you mean: 

Set bpm:dueDate as mandatory-aspect

Skyor
Champ on-the-rise
Champ on-the-rise

Hello, can i set bpm:dueDate as mandatory-aspect in workflowModel file?

I tried

<mandatory-aspects>
                <aspect>bpm:workflowDueDate</aspect>
</mandatory-aspects>
and 
<mandatory-aspects>
                <aspect>bpm:dueDate</aspect>
</mandatory-aspects>
But i got an error: 
Mandatory aspect 'bpm:workflowDueDate' of class 'scwf:reviewCommentTaskVision' is not found
 
1 ACCEPTED ANSWER

abbask01
Star Collaborator
Star Collaborator

this is because you are trying to make a property (bpm:workflowDueDate & bmp:dueDate), a mandatory aspect, what you need is to define bpm:dueDate in your custom task type definition as mandatory.  like - 

.
.
<type name="bpm:myTask">
            <parent>bpm:workflowTask</parent>
            .
            .
            <properties>
                .
                .
                <property name="bpm:dueDate">
                    <type>d:date</type>
                    <mandatory>true</mandatory>
                </property>
.
.
Regards,
Abbas

View answer in original post

2 REPLIES 2

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

Hi,

Are you trying to apply mandatory aspect in existing workflow?

abbask01
Star Collaborator
Star Collaborator

this is because you are trying to make a property (bpm:workflowDueDate & bmp:dueDate), a mandatory aspect, what you need is to define bpm:dueDate in your custom task type definition as mandatory.  like - 

.
.
<type name="bpm:myTask">
            <parent>bpm:workflowTask</parent>
            .
            .
            <properties>
                .
                .
                <property name="bpm:dueDate">
                    <type>d:date</type>
                    <mandatory>true</mandatory>
                </property>
.
.
Regards,
Abbas
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.