Dynamically updating a job status

I have a scenario where a job unzips a zip file and if there are images in the file it goes one path and if there aren't it goes another path.  It works fine if there are images as that path runs all of the jobs in the job group and the job group resets to Waiting on Children and all children reset to Waiting on Dependencies because it is scheduled to run the same occurrence every five minutes.  When there aren't images, it runs a nested job group to clean up the zip file and directory it created but leaves several of the jobs in a Waiting on Dependencies status so another occurrence never fires off.  I would like to update all of the jobs that are stuck in the Waiting on Dependencies status to a Completed Normally status when that nested job group completes normally, but I am not sure how to control the status on these jobs dynamically.  Any suggestions would be very much appreciated.

Perhaps this sample code may help you.
import javafx.animation.*;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.chart.*;
import javafx.stage.Stage;
import javafx.util.Duration;
public class VaryingChart extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(Stage stage) {
    final NumberAxis xAxis = new NumberAxis();
    final AreaChart chart = new AreaChart(
      xAxis, new NumberAxis(),
      FXCollections.observableArrayList(
         new XYChart.Series("April", FXCollections.observableArrayList(
           new XYChart.Data(0, 4), new XYChart.Data(1, 10), new XYChart.Data(2, 18)
         new XYChart.Series("May", FXCollections.observableArrayList(
           new XYChart.Data(0, 20), new XYChart.Data(1, 15), new XYChart.Data(2, 12)
    xAxis.setAutoRanging(false);
    xAxis.setUpperBound(3);
    chart.setTitle("Temperature Monitoring (in Degrees C)");
    stage.setScene(new Scene(chart, 800, 600));
    stage.show();
    Timeline t = new Timeline(new KeyFrame(Duration.seconds(1), new EventHandler<ActionEvent>() {
      @Override public void handle(ActionEvent arg0) {
        xAxis.setLowerBound(xAxis.getLowerBound() - 1);
    t.setCycleCount(Timeline.INDEFINITE);
    t.play();
}Here is another example of displaying data dynamically on a chart: https://gist.github.com/2129306
I have never found a situation where you needed to explicitly call
dynamicChartPane.requestLayout() or chart.needsLayout()

Similar Messages

  • How to update automatically a job status type to Complete - No Charges ?

    Hello,
    I'd like to update automatically (= no user intervention) jobs status type from "Complete" to "Complete - No Charges".
    I've tried the Wip Mass Load program (using WIP_JOB_SCHEDULE_INTERFACE), but it didn't work because this program can only update jobs to Unreleased, Released, Complete, On Hold, or Cancelled.
    Can anyone help me please ?

    hello,
    changing the status from "Complete" to "Complete - No Charges" without user intervation is not posssible,user has to assign it meaning that all resources have been charged,if there are any pending material transactions you can correct it & then assign this status.
    regards,
    ganpa

  • Job status in OEM console is not updated

    Hi,
    I am using OEM job console to run some batch jobs. When a job is submitted for execution, the job status does not change to started/completed. It always remains in the scheduled status, but when I check the database the job is running and it finishes fine. I checked the agent on the target database and restarted the management server. Any thoughts on what could be the issue?
    Thanks
    Rk

    Whats exactly you are looking ? is there any reason for comparing ?

  • Job status of Business Rules not reflecting correctly in Hyperion Planning

    Hi,
    In our Planning Web Application version 11.1.2.1 (Classic application), we have issue with the Business Rules not changing the job status from Processing to Complete.
    Essentially giving an indication to users that the job is taking longer than expected.
    Having noticed that behavior, when we cross check with Admin credentials (Application Logs ) HBR Launch.log. The End Time of the job is updated promptly.
    We have couple of SRs Open with Oracle but they concluded it’s a bug and need to upgrade to 11.1.2.2. But currently we do not have any plans to upgrade to the latest version.
    In order to force the Status change to mark it as Complete at the SQL Server backend.
    We have to update the status table HYP_JOB_STATUS manually via database update.
    But this is laborious process.
    Did anyone encounter such issue? Please suggest a feasible option here ?
    Thanks,
    Venkat
    Edited by: 947686 on Dec 18, 2012 6:21 AM

    Hello Shiva,
    We do not have any issue with calc rules; we are facing this issue with Business rules.
    We have looked into the logs in both Applcation logs and Essbase logs nothing found strange except couple of .xcp files were generated in Essbase server. We have sent those .xcp files to Oracle for investigation. We have also noticed that Web Logic server was not hand shaking properly with Hyperion Server. Oracle responded with few application settings which we are already sycn with recommended settings.
    We had the same issue in 8 months back and the same repeated now.
    Thanks,
    Venkat

  • EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); job status is failed

    Hi all,
    after I import dump fully database , the EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); job status is failed,
    what is the reason and how could I start it successfully.
    appreciate your help.

    user2075318 wrote:
    Osama , thx for the updates,
    but unfortunatly I don't have access to oracle support site,
    it's grate if you can give me the 444033.1 document please.you need to have valid license to get oracle.support.com , otherwise i can't post anything here it will be illegal to do that

  • Job status code in RW_SERVER_JOB_QUEUE

    Hi,
    While running a report, In current jobs queue manager of the admin portal, the status of the job is dispalyed as "Opening the report"(status code is 2), but in the RW_SERVER_JOB_QUEUE table status_code is updated as 1 (ie waiting in the queue) until the job run successfully/terminated.
    RW_SERVER_JOB_QUEUE table status code is different from the Queue Manager of the Admin portal.
    How to update the correct status code in the rw_server_job_queue table?
    i am able to get the current status code of all the jobs using the rwservlet/showjobs command.
    Please help me..
    Thanks!
    Regards,
    Deena

    Hi!!
    I am facing the same problem in my project. Did get any solution on the stated issue?
    Regards,
    Abhishek

  • WIP Discrete Job status

    Hi Experts,
    Is it possible to add a custom Discrete job status? We would like to use it to mass
    close jobs.
    Thanks.
    Gregg

    Right now users are manually updating the status to Complete(irrespective of quantity complete of not). They want this process to be automated for the jobs after three days from scheduled start date, since they have so many in a day. For automation is there any available functionality or If write a custom program to update the status what other tables do i have to update other than wip_discrete_jobs?
    Any ideas, appereciate your help.
    Thanks.

  • Check The Job Status

    Hi SAPsimhas,
    My requirement is as below.
    I will loop through an internal table and create some files with background processing method.(JOB_OPEN,SUBMIT & JOB_CLOSE)
    Now once this job is triggered I need to check the status for that job after maximum 10 mins. Its not neccessary that each job will take 10 mins. only,It can be finished in 2 mins also.
    Once the job is finished then I will XCOM that file.
    So my question is how to code such timer which will check the job status for that job? I have a FM BP_JOB_READ which returns the job status.
    Reply is highly appriciated.

    Try this way
      do.
        call function 'SHOW_JOBSTATE'
          exporting
            jobcount         = p_jobc
            jobname          = p_jobn
          importing
            aborted          = v_aborted
            finished         = v_finished
            ready            = v_ready
            running          = v_running
            scheduled        = v_scheduled
          exceptions
            jobcount_missing = 1
            jobname_missing  = 2
            job_notex        = 3
            others           = 4.
        if v_aborted eq 'X'.
          exit.
        endif.
        if v_finished eq 'X'.
          select single * from tbtcp into wa_tbtcp1
                     where jobname eq p_jobn
                       and jobcount eq p_jobc.
          if sy-subrc eq 0.
            move wa_tbtcp1-listident to p_spono.
          endif.
          exit.
        endif.
        if v_count le 10.
          call function 'ENQUE_SLEEP'
            exporting
              seconds = 60.
          v_count = v_count + 1.
        endif.
      enddo.

  • Regarding Updating Purchase order status

    Hi,
    Could any one tell me how we relate equipment(IE02/IE01-EQUNR) with purchase order(AUFK-AUFNR). how we will find that for a single equipment how many purchase orders are existed.
    and i want to update user status in purchase order could any one tell me the function module or bapi for updating the user status in purchase order.
    Thanks in advance.
    Points will be rewarded for helpfull answer..

    Robert,
    Have you tried to implement BBP_DOC_SAVE_BADI to recognize the creation of the invoice? This document should have the reference for the PO, if you have this relation then you can update status there, in the badi implementation...
    As Ramki says, you should raise an OSS message to ask for an standard way.
    BR,
    Gerardo.

  • Updating service order status in CRM from R3 after the invoice is created

    Hi all ;
    I need to update the user status of an service order in CRM when the invoice related to it in R3 is created, so I have already know  the service order no .
    How can i achieve this by sending BDOC from R3 to CRM? Which BDOC should i use?and is it enough to fill only status data in BDOC?
    Thanks.

    Hi sushant,
    When the R/3 Order status is set to 'Completed' then the system status for order in CRM system is automatically changed to 'Completed'.
    So firstly check whether the User status ('Completed')in SAP CRM has the Business transaction event set to 'FINI'. So when the system status is set to 'Completed' the user status will also change to 'Completed.'
    Secondly even check what are the statuses of item in the Orders.
    regards,
    Anubhav

  • Unable to get job status via BIP web service

    Hi,
    I'm scheduling a report job using the method scheduleReport of the ScheduleService web service. The method returns the jobId correctly, then I check the job status using getScheduledReportStatus.
    Every time the method returns jobstatus = "Scheduled", but the report is finished. I noticed that BIP schedule a child job with different jobId (why?) and If I use it, the getScheduledReportStatus return a null status.
    Using the method getScheduledJobInfo I have all the information, but how can I get the child jodId ?
    Best regards,
    Alessio

    Hi Alessio
    I know this was a long time ago but i was just taking a chance:
    Quick question: did you get this to work? I can schedule a report using the ScheduleReport sevice, but when i query the status using getScheduledReportStatus, the status remains 'Scheduled', even after the job has run. The job also does not appear in the Job History of the report. The report is set to burst, which it does correctly.
    Do you have any ideas?
    Thanks very much.

  • 5 error while checking job status

    Hi,
    We are getting the following error when we are trying to check the status of the process chain through FM 'RSPC_API_CHAIN_GET_STATUS':
    5 error while checking job status.
    The real scenario is we are using an abap screen with a button on it. when the user clicks on the button we call the FM 'BP_EVENT_RAISE' to trigger the process chain. once the chain is triggered we are having an endless loop to monitor the status of the chain with FM 'RSPC_API_CHAIN_GET_STATUS' untill the chain status turns green ie G.
    Now while monitoring the status it randomly throws me the above error. it seems to work sometimes and other times it gives the popup with the said error.
    Can anybody help why we get the error.
    Regards,
    Shashank

    Hi Shanshank,
    Try to Debug the FM.
    Rgds,
    Ravi

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • What are the possible values for the JOB status?

    What are the possible values for the JOB status in the table TBTCP and significance for each?

    Hi,
    Have a look at include LBTCHDEF.
    The standard include from SAP.
    -> Definitions and Constants for Function group BTCH
    Kind Regards
    Raymond

  • How can i dynamically update a table in my program?

    Hi there!
    I would like to know if anyone can assist me with advice on how to dynamically update
    a table within my program, with new values from the database?
    Thanking You all.

    Add rows to its model.
    Kind regards,
    Levi

Maybe you are looking for

  • How can I pass field value beetwen view in IC Web Clien

    Hi my name is Adrian and I am begining abuot BSPs programming. I have a next problem, I have two views, IRecReson.htm and IRecFollowUp.htm.  They have a description field both, and I need to pass the same value to description field when the user save

  • HT1923 I can't uninstall iTunes from the control panel on a Windows Vista machine.  .

    I need to uninstall iTunes so I can upgrade my Windows Vista machine to Windows 7 Home Premium.  When I try to uninstall it tells me I can't because I don't have administrator privleges.  I am the only user account on the machine and I have full admi

  • Video Portal ?'s

    In the process of deploying our Digital Media Manager, Video Portal and Digital Signage. Have a few generic questions and I don't see an appropriately titled group here where to ask. I will post here and hope for the best. 1. Is there a forum, distro

  • A HOST command in PL/SQL?

    Hello guys! :) I need to execute some SFTP commands on the database server to another SFTP server. In oracle forms theres a built in called "HOST" which executes native commands on the server. Is there something similar to that in PL/SQL? Also, im wo

  • Can curved arrows be created in Keynote?

    I want to create a diagram (feedback loop), which will look far better as a circle than as a square. I can find no information in Help on this topic and have not been able to change the straight arrows to curves. Thanks for your advice. - Hill G4 (Al