Quantcast
Channel: SCN: Message List - SAP Business Process Automation by Redwood
Viewing all 2607 articles
Browse latest View live

Redwood script to change the Error status to Completed

$
0
0

Currently  processing a job which fails via a CPS System kill for each run. CPS/Redwood Guides states that the Error status can be change to Completed  in the Job Definition Actions Tab with the Post Running Option via a Redwood Script. Looking for a layout or a working example of the script.


Re: Redwood script to change the Error status to Completed

$
0
0

Hi Larry,

 

 

I would be curious to know where in the documentation it is mentioned that you can set the final status of a job that has been killed. This should not be possible. Killing a job should be something out-of-the-ordinary, not something you do regularly. The real solution to your problem is improving the code that is run when your job is running (the code in the job definition) to exit early if something goes wrong.

 

When you kill a job, you interrupt all processing, even the post-running action.

 

If this job is in a chain, you can use status handlers there to mark the chain Completed, even if you killed the job inside the chain.

 

As for setting the final status in a post running action, you could use something like this, however (!), this will not work for killed jobs:

 

{

  if (<myCondition>)

  {

     jcsPostRunningContext.setFinalStatus(JobStatus.Completed);

  }

}

 

 

Where myCondition is some condition, for example:

 

JobStatus.Error.equals(jcsJob.getStatus())

 

Regards,

 

HP

Re: How to find Chain names where an Event is used.

$
0
0

Hi Giovanni,

 

You navigate to the even definition, there you have two lists, one for processes or chains that use the even as a Wait event, another for the processes and chains that use the even as Raise event.

 

These lists are only displayed if this even definition is used in that way.

 

 

Regards,

 

HP

Re: How to schedule the Powershell script in Redwood?

$
0
0

Hi Anandhi Rengaraj,


The execution of PowerShell scripts has been disabled on that system. You have to contact the Windows System administrator to inquire if they can enable PowerShell on that platform.


You have to ensure the correct "bittiness" PowerShell executable has been used to allow scripts.


By default, the 32-bit version is used, on newer releases, 9.0.14+, iirc (earlier releases might have this as well), you can set a process server parameter to use the 64-bit version of the executable. See the PowerShell topic in the documentation.


You use:


C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe (32-bit)


or


C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (64-bit)

 

I know, the path-names are confusing ;-).

 

Regards,

 

HP

SAP CPS : run the jobs on selected (Test) systems

$
0
0

Hello,

 

Present steup:

We have connected 200+ ABAP systems( development & test systems) to SAP CPS system to run the normal 12 houskeeping jobs.

we have creatred the job chain to run these 12 ABAP jobs on all the 200+ ABAP systems.

 

now we have got a request to run the report(xyzzz) on ONLY in TEST ABAP systems.

 

is there any simply way to determine the DEV or TEST ABAP systems for the redwood at runtime.

 

i am thinking..     job1 : check for DEV or TEST

                           job2 : run the report xyzzz

 

logic, if the job1 output is TEST then run the Job2.

         if the job1 outpit is DEV then skip the Job2.

 

in ABAP system, i can find the DEV/test system by checking the RZ11 parameter "transport/systemtype"

 

Regards,

Shridhar Gowda

Redwood Cronacle - Save spool by company code name

$
0
0

Hi All,

Can anyone suggest how to save spool by company code name automatically rather than i manually hard code the spool name for each step. I have a program which runs for 130+ company codes and each company code process the data and save a spool. Now we need to download those spools to a drive through redwood Cronacle. the first step in the chain triggers the SAP program which trigger the job in SAP and spools are generated for 130+ company codes.

Now i created second step to save the spool but its not saving all files.

The step1 gets spool in name like step1_spool1.text, step1_spool2.txt, step1_spool3.txt etc.

 

Now i tried to 'jgetfile -j -s "Step 1, job 1:step1_spool1.txt" -o "%destination%\spool1.txt" but now i have to create multiple lines like this and some time we will not have all company codes create spool because it will not have data to process.

Please advice how i can modify the above script to save all spools to a drive.

 

If its not easy to save spool with company code we are ok to save as is like step1_spool1.txt or spool1.txt.

 

Would be happy to share more information.

Thank you,

Arun

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Can you run SAP_Info against these systems and check if the info is in there?


Regards Gerben

Re: Redwood Cronacle - Save spool by company code name

$
0
0

Hallo Arun Akuthota,

 

Have you tried Step 1, Job 1:*spool*

 

I am travelling so I cannot test, but I think that "should" work.

 

Regards,

 

HP


Mail Alert for Cancelling, Killing, Post Running Status without Alerting Module

$
0
0

Hi All,

 

I am new to Redwood and here are the details of Redwood we are using.

Build M33.92-68971 and we dont have Alerting module.

 

We have a requirement that for some jobs if they are in post running/killing/cancelling/running for more than 15 minutes, we have to send email alert.

 

Here is what I have thought of:

 

1. Create a raise event for the job A to be notified and raise a custom job.

2. Custom job will also start running the moment job A is running.

3. Get the jobid from event and get the run time from the job table.

4. In Job A check if runtime > 15 minutes, then send a mail.

 

In step 4 how could I trigger a mail? I am not sure how could I do that

 

This custom job will be like a template so that it can used for more jobs.

I read through previous posts but could not really get the logic.

 

please advice and any help is highly appreciated.

 

Thanks,

Kasyap.

How to setup a chain where a job has 2 dependencies

$
0
0

Hi Experts,

 

Need an advice how to setup a chain wherein one job has 2 dependencies. Pls refer to below. Appreciate any help. Thanks.

 

JobD should start if JobA and JobC is completed

Untitled.jpg

 

 

 


 


 

 

 

 

 

 


   
  

JobD


   
  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


   
  

JobC


   
  

 

 

 

 

 

 

 

 

 

 

 


   
  

JobB


   
  

 

 

 

 

 

 

 

 

 

 

 


   
  

JobA


   
  

Re: How to setup a chain where a job has 2 dependencies

$
0
0

Hi

 

You should place Job D in a step behind job A and C

 

Jobs within the same steps are executed at the same time, steps are performed after each other.

 

Untitled drawing (1).jpg

Re: Mail Alert for Cancelling, Killing, Post Running Status without Alerting Module

$
0
0

This is not a good design, first thing is you are adding unnecessary load to the system. If there are 5000 jobs running in an hour, you will be adding 5000 more jobs to monitor them and 5000 more to send an email. You will be running 3 times the load on the system.

 

thanks

Nanda

Re: How to setup a chain where a job has 2 dependencies

$
0
0

Hello Angelo ,

 

As per your reply to me and Ooms.

 

Its better to define each job in a separate single step.

 

Step1     Step 2     Step 3      Step4

Job A     Job B       Job C      Job D

 

Below are your conditions which are getting satisfied.

 

JobA starts - Satisfied

 

After 5 mins, JobB starts (regardless of JobA status) -- As per the basic feature of Job Chain two Steps cant be Run in Parallel. Job B is in step 2 . So obviously Step 2 will execute after the completion of Step 1(Job A).

 

JobC starts after completion of JobB (regardless of JobA status) --> After the completion of Step2 (Job B)only Step3(JobC) will start.

 

JobD starts after completion of JobC & JobA --> As JobD is in Step4 . so the Step4 will Run After the completion of previous steps.

 

So there is no chance that the Job A was Still running and Job D was Stopped.  It will work , Try in your test Environment

Re: CPS GC settings

$
0
0

Hi Murali, thank you .

 

Perhaps, not certainly OOM but recently we have been through sudden restart or emergency shutdown of server0 node with exit code 333. Can you please advise, what necessary changes need to be taken in GC settings in specific please ?

House Keeping in Redwood

$
0
0

Hello All ,

 

What are basic house keeping activities or House keeping Jobs , That should Run in the System. So that should looks stable in future.

 

In our production System the  job monitor window is taking time to Load. So can one help on this.


Re: Mail Alert for Cancelling, Killing, Post Running Status without Alerting Module

$
0
0

Hi nanda,

 

so how could we about it?

Re: How to setup a chain where a job has 2 dependencies

$
0
0

Thanks Gerben for the advice. In your illustration, will JobA and JobB run together? It looks like JobB will depend on completion of JobA. What we want to happen is let Jobs B to D run sequentially and if JobA is still running, do not run JobD.

 

JobA is somewhat an independent job, but JobD is dependent on it as well.

Re: How to setup a chain where a job has 2 dependencies

$
0
0

Thanks Krishna. I think this is the simplest way to do it. But our objective is to save time because JobA is running quite long. So we want to run jobs B to D sequentially while A is running to save time. However, if A is still running, D should not run.

 

In your illustration, we will need to complete JobA before the succeeding jobs run.

Re: error for email notification job

$
0
0

Hi Chris,

Has there been any solution to this issue?

Re: How to setup a chain where a job has 2 dependencies

$
0
0

A sub-chain will start like a normal job in the step.

So the sub chain start the same time as job A

 

If you want a delay for 5 min you can add a step 0 in the job with a wait job "System_Sleep"

Or you can add a StartTime =Time.expressionNow('add 5 minutes')


Sjoerd

Viewing all 2607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>