gpt4 book ai didi

java - 我们如何在 Sailpoint IIQ 中设置日期范围

转载 作者:行者123 更新时间:2023-12-01 16:39:10 28 4
gpt4 key购买 nike

我正在尝试动态设置报告的日期范围。但似乎我正在使用的包没有实现应有的接口(interface) Serialized 。您知道我如何使用 Sailpoint 处理日期范围吗?这是我的包:org.jfree.data.time.DateRange

当我设置字符串对象时,我没有收到任何错误,而我使用 dateRange 时:

java.lang.Exception: sailpoint.tools.GeneralException:
The application script threw an exception:
sailpoint.tools.xml.ConfigurationException:
No serializer registered for class class org.jfree.data.time.DateRange

当我保存对象后执行 context.commitTransaction() 时,就会发生这种情况。

谢谢

最佳答案

我找到了解决方案。 Daterange 不是对象的类型,它只是接口(interface)上的精度。如果您要设置日期范围,请执行以下操作:

 TaskDefinition task = context.getObjectByName(TaskDefinition.class, "The name of the report");
Map map = new HashMap();
map.put("end",end_date_convert_in_long);
map.put("start",start_date_convert_in_long);
task.setArgument("the name of the variable", map);
context.saveObject(task);
context.commitTransaction();

关于java - 我们如何在 Sailpoint IIQ 中设置日期范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61899185/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com