-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdata task params #672
Comments
Looks like it might be treating the |
The parameter binding editor panel doesn't accept
I have tried manually editing the mappings in xml specification, but that is tedious and error-prone, and not a good production solution. |
The attached The email task wraps the input with If you apply the If there is a simpler, better way to solve this problem, please advise. |
The specific issue I'm having is putting HTML markup in the content parameter of an email task. But I think it could be a more general problem.
The YAWL user manual recommends to simply input cdata-section markup in the parameter
Binding
field of the editor. The first problem with this is that the editorXQueryEvaluator.maskIndex()
method doesn't know about cdata markup, and prevents saving this markup. I tweaked the method to pass cdata-markup through, but then found it still doesn't work with generated content.which works OK for static text, but fails with generated content, like:
Because the embedded xquery is passed as literal instead of processed as xquery expression.
When the binding is saved as simply:
the editor doesn't complain, and the specification can be loaded and run. However, you get MailService runtime error like this:
So, it seems impossible to add cdata section with generated content to a task parameter.
The only solution I could find for this problem was to add a
isCDATA
boolean attribute to thecontent
parameter. InYTask.performDataExtraction()
, add the following:(See attached patch. ytask-iscdata.patch)
If my analysis is correct, please apply the patch to
YTask
, and add theisCDATA
parameter to the standard parameters, and to documentation. Further enhancements could be made toMailService
to addisCDATA
attribute tocontent
parameter by default. This would advertise the availability of this attribute. Otherwise the spec author will have to know to add this in specification.If there is another solution that I missed, please advise.
The text was updated successfully, but these errors were encountered: