添加 jobStreamInstance

Add jobStreamInstance

我正在尝试使用以下方法将应用程序添加到 CP:

  addJobStreamInstance(Identifier jobStreamId, java.util.Date inputArrivalTime, java.lang.String alias, Context context)

但我收到错误 AWSJCS011E 发生内部错误。错误如下:"UNSUPPORTED_METHOD".

我的代码是:

    QueryFilter queryFilter = new QueryFilter();
    queryFilter.setFilter(JobStreamFilters.JOB_STREAM_NAME, "APNAME");
    QueryResult queryResult = model.queryTWSObject(JobStream.class, queryFilter, 5, null);
    List<JobStreamHeader> jobStreamHeaderList = queryResult.getList();
    Identifier applicationId = jobStreamHeaderList.get(0).getId();
    plan.addJobStreamInstance(applicationId, new Date(),jobStreamHeaderList.get(0).getName()+"A1",null);

该方法仅适用于 TWSd。

z/OS交易平台提供以下方法:

addJobStreamInstance(JobStreamInPlan jobStream, Context context);
addJobStreamInstance(String name, Date startTime, Date deadlineTime, int priority, String description, String group, String owner, String ownerDescription, String variableTable, String authorityGroup, boolean holdAll, DependenciesResolutionOption dependeciesResolution, Context context);
addJobStreamInstanceWithVariableSubstitution(String name, Date startTime, Date deadlineTime, int priority, String description, String group, String owner, String ownerDescription, String variableTable, String[][] variablesToBeSubstituted, String authorityGroup, boolean holdAll, DependenciesResolutionOption dependeciesResolution, Context context)