[
https://jira.jboss.org/jira/browse/JBPM-2177?page=com.atlassian.jira.plug...
]
Tom Baeyens commented on JBPM-2177:
-----------------------------------
the API looks like this:
public void testActivityCoordinates() {
deployJpdlXmlString(
"<process name='ActivityCoordinatesProcess'>" +
" <start>" +
" <transition to='a' />" +
" </start>" +
" <state name='a' g='96,16,75,52' />" +
"</process>"
);
String processDefinitionId = repositoryService.createProcessDefinitionQuery()
.key("ActivityCoordinatesProcess")
.uniqueResult()
.getId();
ActivityCoordinates activityCoordinates =
repositoryService.getActivityCoordinates(processDefinitionId, "a");
assertEquals(96, activityCoordinates.getX());
assertEquals(16, activityCoordinates.getY());
assertEquals(75, activityCoordinates.getWidth());
assertEquals(52, activityCoordinates.getHeight());
}
public void testUnexistingCoordinates() {
deployJpdlXmlString(
"<process name='ActivityCoordinatesProcess'>" +
" <start>" +
" <transition to='a' />" +
" </start>" +
" <state name='a' />" +
"</process>"
);
String processDefinitionId = repositoryService.createProcessDefinitionQuery()
.key("ActivityCoordinatesProcess")
.uniqueResult()
.getId();
ActivityCoordinates activityCoordinates =
repositoryService.getActivityCoordinates(processDefinitionId, "a");
assertNull(activityCoordinates);
}
expose activity coordinates programmatically
--------------------------------------------
Key: JBPM-2177
URL:
https://jira.jboss.org/jira/browse/JBPM-2177
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Reporter: Tom Baeyens
Assignee: Tom Baeyens
Fix For: jBPM 4.0.0.Beta2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira