-
1. Re: Why cannot use slash(/) in activity name
swiderski.maciej May 28, 2010 8:06 AM (in response to rebody)Hi HuiSheng,
I think it comes from jBPM v3. There is support for hierahical names support on transitions.
Here are some useful links that can put some light on it:
https://jira.jboss.org/browse/GPD-20
http://docs.jboss.org/jbpm/v3/userguide/processmodelling.html#hierarchicalnames
I am not sure if that is valid for 4.x. I made a quick test and that worked fine for a very simple case.
-
2. Re: Why cannot use slash(/) in activity name
rebody May 28, 2010 10:51 AM (in response to swiderski.maciej)Thank you very much Maciej. I will go back to make sure if GroupActivity had these feature.
-
3. Re: Why cannot use slash(/) in activity name
rebody May 28, 2010 11:09 AM (in response to swiderski.maciej)Hi Maciej,
I read about Developers Guide.
http://docs.jboss.com/jbpm/v4/devguide/html_single/#groupsecret
Seems that Tom didn't want to let a transition jump from a group to another group.
But how could we handle it now? Do we need implement the feature like jBPM 3? Or limit the behaviour of transitions in groupActivity, not let them go over the boundary of GroupActivity?
-
4. Re: Why cannot use slash(/) in activity name
swiderski.maciej Jun 2, 2010 2:41 AM (in response to rebody)It seems like it is not supported (hierarchical names) in version 4 and most likely won't be.
Perhaps it can be done as configurable item. So if you want to use '/' in your activity names you can just disable the validation but keep the validation enabled by default for backward compatibility.
-
5. Re: Why cannot use slash(/) in activity name
rebody Jun 8, 2010 10:06 PM (in response to swiderski.maciej)Hi Maciej,
Could I add an attribute 'allow-slash' in the jpdl definition and let it default to 'false'. So if someone need use slash in activity name, he could set this attribute to 'true'?
-
6. Re: Why cannot use slash(/) in activity name
swiderski.maciej Jun 9, 2010 2:12 PM (in response to rebody)I was thinking to put it more on jbpm configuration level than as part of JPDL. I did not look into possibilities for that though...
I would say if that could be configurable on configuration level that would be perfect solution, in my opinion.
-
7. Re: Why cannot use slash(/) in activity name
rebody Jun 10, 2010 1:23 AM (in response to swiderski.maciej)Hi Maciej,
Seems the configuration of jbpm4 cannot set properties in the xml directly. Here we need a way to modify the process engine configuration properties on xml.
I think this is an useful feature. I will go further to see how to achieve this.
-
-
9. Re: Why cannot use slash(/) in activity name
aguizar Jul 5, 2010 6:24 PM (in response to rebody)Hierarchical names are complex and their applicability in jBPM 3 was quite limited. There is no need to support them in jBPM 4. The only plausible use case for them is the group secret section of the group activity chapter in the developers guide. It is worth noting that the secret feature described there goes against BPMN. If this feature is not based on community demand, has questionable semantics and requires extraneous activity naming restrictions, then it should be dismissed.
In sum, slashes in activity names should always be allowed without requiring a configuration switch. Note that this does not break backwards compatibility because all existing processes without slashes in their activity names will still be accepted.
-
10. Re: Why cannot use slash(/) in activity name
rebody Jul 5, 2010 9:12 PM (in response to aguizar)Hi Alejandro,
In sum, slashes in activity names should always be allowed without requiring a configuration switch.
I'd love to do that. I will re-open this issue and make a new patch today. Thank you for commenting.
-
11. Re: Why cannot use slash(/) in activity name
aguizar Jul 7, 2010 11:33 PM (in response to rebody)Perhaps I should have been more emphatic. I am for removing the slash restriction entirely, without introducing a new configuration setting. If you have no objection, I'm going to revert the changes related to JBPM-2904, sparing the test cases, and lift the restriction imposed by JpdlBinding instead.
-
12. Re: Why cannot use slash(/) in activity name
rebody Jul 8, 2010 1:03 AM (in response to aguizar)Hi Alejandro,
OK. No objection.
But I don't want this deplayed jBPM-4.4 releasing. If it will take too much time, please postpone this issue to the next version. Thank you.