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

问题描述 投票:0回答:1

我正在尝试动态设置报告的日期范围。但是似乎我正在使用的包没有实现接口Serializable。您知道我如何使用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()时发生。

谢谢

java date-range sailpoint
1个回答
0
投票

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

 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();
© www.soinside.com 2019 - 2024. All rights reserved.