Martyn Houghton Posted May 20, 2016 Posted May 20, 2016 As far as I understand, the custom expressions for decision nodes have to use literal values when using a static value. It would be really useful to be able to use wildcard and the like operator to be able to branch based on a matching value, i.e. if the Service name beginning with 'HR' follow this branch, rather than having to enter each literal value of the Services that begin with HR. Cheers Martyn
TrevorKillick Posted May 20, 2016 Posted May 20, 2016 Hi Martyn I will raise the request with Development and see what they come back with. Kind Regards Trevor Killick
NeilWJ Posted May 23, 2016 Posted May 23, 2016 Hi Martyn, Have added 3 new operators to BPM and Progressive Capture custom expression editor for the decision nodes. The new options are "starts with", "ends with" and "contains". So You can do:- "something starts with ABC", "something ends with XYZ" and "something contains HIJ" Note do not need to use % in the test value. I didn't want to just have a LIKE operator and then expect non sql minded users to understand the use of % in their test values. This change is in beta and once the guys confirm its good to go i imagine it will be live by the end of the week. Look out for it in the release notes. Cheers
Martyn Houghton Posted May 23, 2016 Author Posted May 23, 2016 Neil Thanks for the quick response and adding of the additional expressions into the development plan, as that will make my branches in the in BPM a lot more compact. Cheers Martyn
TrevorKillick Posted May 23, 2016 Posted May 23, 2016 Hi Martyn This should now be available on Live Kind Regards Trevor Killick
Martyn Houghton Posted May 23, 2016 Author Posted May 23, 2016 Trevor Thanks for the head up, the new operators are indeed now available. Cheers Martyn
samwoo Posted May 25, 2016 Posted May 25, 2016 Hello, Adding this feature has been great in the BPM area, but it doesnt seem to work in the Progressive Capture area... When you select choices in a check box on a Custom Form, they merge the results into a single string seperated by commas such as the following: [✔] Option 1 [✔] Option 2 [ ] Option 3 [✔] Option 4 [ ] Option 5 [✔] Option 6 becomes Option 1, Option 2, Option 4, Option 6 I then add a Branch node that links to different forms, for example... Open Form 1 if check box result contains the word Option 1 then move to the next branch. Otherwise No Match to the next branch. then Open Form 2 if check box result contains the word Option 2 then move to the next branch. Otherwise No Match to the next branch. then Open Form 3 if check box result contains the word Option 3 then move to the next branch. Otherwise No Match to the next branch. And so forth. But when filling out the form as a test, no matter how many check boxes i tick, it goes through all the No Match results to the end of the form... The Custom Expression boxes look like the following: The operators are available in this area, so assumed it would have worked as expected. Thanks, Samuel. (ps. It appears that the Formatting on my post is broken... i have used "Increased Indents" and "Decrease Indents" but the results come out as everything indented past the first indent i have used.)
NeilWJ Posted May 25, 2016 Posted May 25, 2016 Hi Samuel, I assume you are testing against the option "value" and not the option "display name", just want to make sure? I have asked our pcf engine developer to clarify and i will get back to. Cheers
NeilWJ Posted July 12, 2016 Posted July 12, 2016 Hi Samuel, Apologies for the late update. We identified a similar issue and a fix is now live. In order to correct the expressions you will need to go into each expression where you are using "contains" and change the operator to say "==" and then change it back to "contains" - this will force the expression to re-code itself correctly. Let me know if you still have issues with it. Cheers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now