-
Notifications
You must be signed in to change notification settings - Fork 30
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
Support all variable types #33
Comments
Hi @AMalininHere! Any chance that you can look into adding date-related variables any time soon? Many thanks for this package; enjoying it a lot! -T |
Hello @tsanton ! Variables of the "Date" type in the Camunda are more like DateTime in dotnet world (https://docs.camunda.org/manual/develop/reference/rest/overview/date-format/). It seems that there is no reason to use DateOnly and TimeOnly since there are no analogs for them in the camunda API. |
Hi again @AMalininHere! I assuming you know a lot more about this than I do, but prior to writing the message above I stumbled upon this: It's referencing Java types (somewhat naturally?), and it is DMN specific, but it that made me think that these types were natural supported due to the tight knit nature of BMNP & DMN. Anyhoo -> I could not find a DateTime (or Date) variable inside Variables.cs; any timeline on that implementation? Speak soon! -T |
Hi again! Yesterday I tried to add support for DateTime (Date variable type) and I had some problems. It's interesting that by default in camunda rest api format of dates contains time zone encoded as sign and 4 digits (rfc822 https://www.ibm.com/docs/en/rtw/9.5?topic=reference-date-time-patterns#wp1026619__wp1027076). Unfortunately, standard dotnet library hasn't support to write timezone in the format which can be parsed by camunda. B.R. |
Hi Again Alexey and sorry for being such a pain! One thing for sure: date & time formats sucks. Json/XML/Any language: pure unadulterated suffering^^ Again; I'm no expert like yourself, but I though the REST API went for "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ref: https://github.com/camunda/camunda-docs-manual/blob/master/content/reference/rest/overview/date-format.md#:~:text=camunda%20%2F%20camunda%2Ddocs%2Dmanual%20Public&text=The%20REST%20API%20uses%20the,%3A33%3A42.165%2B0100%20. To me that looks like a standard Hope I'm not ruining your weekend! :) -T |
Yes, default date format in camunda is Currently, I think that custom json converter is the only way to support dates. B.R. |
Currently not for all variable types present helpers for creation of variable (e.g.
Variable.String("Some string")
) and reading a value from variable (e.g.variableInstance.AsString()
). It would be great to add helpers for following types:The text was updated successfully, but these errors were encountered: