[JBoss JIRA] (WFLY-12093) bug in tutorial "batch-processing" with column "End Time"
by Cheng Fang (Jira)
[ https://issues.redhat.com/browse/WFLY-12093?page=com.atlassian.jira.plugi... ]
Cheng Fang commented on WFLY-12093:
-----------------------------------
end time should not change after a job execution is done. {{org.jboss.as.quickstarts.batch.controller.JobData#getEndTime}} should just return the value retrieved from batch job repository to reflect job execution history.
> bug in tutorial "batch-processing" with column "End Time"
> ---------------------------------------------------------
>
> Key: WFLY-12093
> URL: https://issues.redhat.com/browse/WFLY-12093
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Environment: batch-processing
> Reporter: Святослав Кремлёв
> Assignee: Parul Sharma
> Priority: Major
> Attachments: 2019-05-18 23_16_51-Batch Processing.png
>
>
> in file
> org/jboss/as/quickstarts/batch/controller/JobData.java
> {code}
> public Date getEndTime() {
> endTime = new Date();
> return endTime.getTime() == 0 ? null : endTime;
> }
> {code}
> its returns current time every time, not the job endTime
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (DROOLS-5000) Support getContext in Drools' executable model
by Luca Molteni (Jira)
Luca Molteni created DROOLS-5000:
------------------------------------
Summary: Support getContext in Drools' executable model
Key: DROOLS-5000
URL: https://issues.redhat.com/browse/DROOLS-5000
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Luca Molteni
jBPM uses this utility method in Knowledge Helper
package org.drools.bpmn2
import org.kie.api.runtime.process.ProcessContext
rule "Auto-activate Hello1" ruleflow-group "Hello"
when
then
System.out.println(drools);
System.out.println(drools.getContext(ProcessContext.class)); System.out.println(drools.getContext(ProcessContext.class).getProcessInstance());
drools.getContext(ProcessContext.class).getProcessInstance().signalEvent("Hello1", null);
end
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months