UserTaskProps.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. 'use strict';
  2. var is = require('bpmn-js/lib/util/ModelUtil').is,
  3. entryFactory = require('../../../factory/EntryFactory');
  4. module.exports = function(group, element, translate) {
  5. if (is(element, 'activiti:Assignable')) {
  6. // Assignee
  7. group.entries.push(entryFactory.textField({
  8. id : 'assignee',
  9. label : translate('Assignee'),
  10. modelProperty : 'assignee'
  11. }));
  12. // Candidate Users
  13. group.entries.push(entryFactory.textField({
  14. id : 'candidateUsers',
  15. label : translate('Candidate Users'),
  16. modelProperty : 'candidateUsers'
  17. }));
  18. // Candidate Groups
  19. group.entries.push(entryFactory.textField({
  20. id : 'candidateGroups',
  21. label : translate('Candidate Groups'),
  22. modelProperty : 'candidateGroups'
  23. }));
  24. // Due Date
  25. group.entries.push(entryFactory.textField({
  26. id : 'dueDate',
  27. description : translate('The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)'),
  28. label : translate('Due Date'),
  29. modelProperty : 'dueDate'
  30. }));
  31. // FollowUp Date
  32. group.entries.push(entryFactory.textField({
  33. id : 'followUpDate',
  34. description : translate('The follow up date as an EL expression (e.g. ${someDate} or an ' +
  35. 'ISO date (e.g. 2015-06-26T09:54:00)'),
  36. label : translate('Follow Up Date'),
  37. modelProperty : 'followUpDate'
  38. }));
  39. // priority
  40. group.entries.push(entryFactory.textField({
  41. id : 'priority',
  42. label : translate('Priority'),
  43. modelProperty : 'priority'
  44. }));
  45. }
  46. };