I was expecting It will work in Xpath update context task as it works in xslt transformation.
Instead I’ve got an error:
Origam.OrigamException: Extension function not found: parse-date
---> System.Xml.XPath.XPathException: Extension function not found: parse-date
at Mvp.Xml.Exslt.ExsltContext.GetExtensionFunctionImplementation(Object obj, String name, XPathResultType[] argTypes)
at Mvp.Xml.Exslt.ExsltContext.ResolveFunction(String prefix, String name, XPathResultType[] argTypes)
at Origam.Rule.Xslt.OrigamXsltContext.ResolveFunction(String prefix, String name, XPathResultType[] ArgTypes) in D:\a\1\s\backend\Origam.Rule\Xslt\OrigamXsltContext.cs:line 104
at MS.Internal.Xml.XPath.FunctionQuery.SetXsltContext(XsltContext context)
at MS.Internal.Xml.XPath.FunctionQuery.SetXsltContext(XsltContext context)
at MS.Internal.Xml.XPath.StringFunctions.SetXsltContext(XsltContext context)
at MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(IXmlNamespaceResolver nsResolver)
at MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(XmlNamespaceManager nsManager)
at Origam.Rule.RuleEngine.EvaluateContext(String xpath, Object context, OrigamDataType dataType, AbstractDataStructure targetStructure) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 436
at Origam.Workflow.Tasks.UpdateContextEngineTask.OnExecute() in D:\a\1\s\backend\Origam.Workflow\Tasks\UpdateContextEngineTask.cs:line 45
at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0() in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 63
at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 97
at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 66
at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.MeasuredExecution() in D:\a\1\s\backend\Origam.Workflow\Tasks\AbstractWorkflowEngineTask.cs:line 99
at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.Execute() in D:\a\1\s\backend\Origam.Workflow\Tasks\AbstractWorkflowEngineTask.cs:line 110
--- End of inner exception stack trace ---
When I replace the date:date-parse function with different EXSLT function like date:date-time(), the lookup works well. Are all the EXSLT namespaces implemented as it was discussed here ?
Are you sure it is not implemented as 2 parameter function? Because when I try to use it in XSLT transformation, it work as expected. For test you can use any transformation - see attached picture with output windows as result.
Try to use such a lookup with date:parse-date function in UpdateContextTask step as ValueXPath. It throw me the error. The same lookup works well in xslt transformation.