1

我一直在关注以下关于RedHat员工排班的教程,一切都很好,直到我检索到问题的最佳解决方案。

该解决方案不包括标签中的endTimeandstartTime的值。timeslot

示例结果如下:

:
:
        <shiftList>
            <requiredSkill>
                <name>speaking</name>
            </requiredSkill>
            <timeslot>
                <endTime/>
                <startTime/>
            </timeslot>
        </shiftList>
        <shiftList>
            <requiredSkill>
                <name>writing</name>
            </requiredSkill>
            <timeslot>
                <endTime/>
                <startTime/>
            </timeslot>
        </shiftList>
:
:

我在 docker 上使用 drools-wb (7.9.0.Final):docker run -p 8080:8080 -p 8001:8001 -v /path/to/my/data/folder:/opt/jboss/wildfly/bin/.niogit:Z --name drools-workbench jboss/drools-workbench-showcase:latest

还有 KIE 服务器(7.9.0.Final),也在 docker 上:docker run -p 8180:8080 --name kie-server --link drools-workbench:kie_wb jboss/kie-server-showcase:latest

有人遇到同样的问题吗?

4

1 回答 1

0

这是由于将未求解的示例发送到求解器时没有正确构造 shiftAssignmentList。以下部分替换了 < shiftAssignmentList/> :

  <shiftAssignmentList>
    <employeerostering.employeerostering.ShiftAssignment>
        <shift reference="../../../shiftList/employeerostering.employeerostering.Shift"/>
    </employeerostering.employeerostering.ShiftAssignment>
    <employeerostering.employeerostering.ShiftAssignment>
        <shift reference="../../../shiftList/employeerostering.employeerostering.Shift[3]"/>
    </employeerostering.employeerostering.ShiftAssignment>
    <employeerostering.employeerostering.ShiftAssignment>
        <shift reference="../../../shiftList/employeerostering.employeerostering.Shift[2]"/>
    </employeerostering.employeerostering.ShiftAssignment>
  </shiftAssignmentList>
于 2018-11-28T00:30:29.240 回答