vmes-flowable
Version:
ceshibao
56 lines (46 loc) • 1.62 kB
JavaScript
;
var is = require('jeeplus-bpmn/lib/util/ModelUtil').is,
entryFactory = require('../../../factory/EntryFactory');
module.exports = function(group, element, translate) {
if (is(element, 'flowable:Assignable')) {
// Assignee
group.entries.push(entryFactory.userSelectField({
id : 'assignee',
label : translate('Assignee'),
modelProperty : 'assignee'
}));
// Candidate Users
group.entries.push(entryFactory.userSelectField({
id : 'candidateUsers',
label : translate('Candidate Users'),
modelProperty : 'candidateUsers'
}));
// Candidate Groups
group.entries.push(entryFactory.userSelectField({
id : 'candidateGroups',
label : translate('Candidate Groups'),
modelProperty : 'candidateGroups'
}));
// Due Date
group.entries.push(entryFactory.textField({
id : 'dueDate',
description : translate('The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)'),
label : translate('Due Date'),
modelProperty : 'dueDate'
}));
// FollowUp Date
group.entries.push(entryFactory.textField({
id : 'followUpDate',
description : translate('The follow up date as an EL expression (e.g. ${someDate} or an ' +
'ISO date (e.g. 2015-06-26T09:54:00)'),
label : translate('Follow Up Date'),
modelProperty : 'followUpDate'
}));
// priority
group.entries.push(entryFactory.textField({
id : 'priority',
label : translate('Priority'),
modelProperty : 'priority'
}));
}
};