This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(property): add ability to edit the id attribute
closes #34
- Loading branch information
1 parent
2ee7a12
commit c0bad73
Showing
14 changed files
with
1,671 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./lib'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
'use strict'; | ||
|
||
var ModelUtil = require('cmmn-js/lib/util/ModelUtil'), | ||
is = ModelUtil.is, | ||
getBusinessObject = ModelUtil.getBusinessObject; | ||
|
||
var isAny = require('cmmn-js/lib/features/modeling/util/ModelingUtil').isAny; | ||
|
||
|
||
function isItemCapable(element) { | ||
return isAny(element, [ | ||
'cmmn:PlanItem', | ||
'cmmn:DiscretionaryItem', | ||
'cmmn:CaseFileItem' | ||
]); | ||
} | ||
|
||
module.exports.isItemCapable = isItemCapable; | ||
|
||
|
||
function isCriterion(element) { | ||
return is(element, 'cmmn:Criterion'); | ||
} | ||
|
||
module.exports.isCriterion = isCriterion; | ||
|
||
|
||
function isCMMNEdge(element) { | ||
return is(element, 'cmmndi:CMMNEdge'); | ||
} | ||
|
||
module.exports.isCMMNEdge = isCMMNEdge; | ||
|
||
|
||
function getCMMNElementRef(element) { | ||
var bo = getBusinessObject(element); | ||
return bo && bo.cmmnElementRef; | ||
} | ||
|
||
module.exports.getCMMNElementRef = getCMMNElementRef; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.