How to configure "User defined" activity in a process flow
I want to start a shell script from a workflow process in an Unix environment. I use owb 10.2.0.1
Name of shell_script: verify_infile.sh
Location of shell_script: /ASW/dw
3 parameters to the script: X X /local/db/import/rain/finans.dat
First parameter is the letter X
Second parameter is the letter X
Third parameter is the path and file name I want to verify
I assume it's the User defined activity I should use and the parameters of the user defined activity are as follows
4 IN PARAMETERS
COMMAND
PARAMETER LIST
SUCCESS THRESHOLD
SCRIPT
1 OUT PARAMETERS
RESULT_CODE
So my question is what shall I have as in parameters in the User defined activity?
Kind regards
Jan
Here is the solution to the case
First make sure parameter in (owb_home)\owb\bin\admin\Runtime.properties is not disabled.
If it is, change the parameter to the value NATIVE_JAVA as described in the file:
property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
Second
COMMAND: /bin/sh
PARAMETER LIST: ?/ASW/dw/verify_infile.sh?X?X?/local/db/import/rain/finans.dat?
RESULT_CODE: 0
SCRIPT:
SUCESS_THRESHOLD: 0
Regards
Jan
Similar Messages
-
User defined activity problem in process flow
Hi ,
any one can help me out
I have added a user defined activity in process flow , and given command values as \\windows\system32\cmd.exe
and parameter list : ${input.value}
and in script : kpi.bat
where i written
cd \kpi_sap
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "c:\kpi_sap\kpi_sap.csv" %%e-%%f-%%g.dat
but its not working ...
can any one give me direction to get success in this activity
best regards,
mahiHi Mahi,
I see that your post is a few days old and you might have resolved this issue, but if you haven't you might want to change the command value to c:\windows\system32\cmd.exe instead. Its been a while since I worked with commands, but I remember that I had a lot of problems when I defined paths with '\\'. What I found out was that OWB jobs was run under the windows system account and the system account don't have access to networkshares (even if its really not on the network).
I can't say whether the script in the kpi.bat is wrong, but as long as you can run it manually using cmd.exe you should be ok.
If this doesn't help it might be helpful with some more specific error messages.
regards Ragnar -
User Defined Activity: Run OS Command with OS parameters
OS: OELR5 U3 x64
DB: 11.1.0.7
OWB: 11R1
I would like to be able to run an os command from a user defined activity within a process flow. I am trying to make use of VMWare's vmrun to control a virtual machine. From the OS command line I enter:
/usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
How many I duplicate this OS command from within a user defined activity in a process flow?
I create a user defined activity:
COMMAND: /usr/bin/vmrun
PARAMETER_LIST:
RESULT_CODE:
SCRIPT: -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
SUCCESS_THRESHOLD: 0
The process runs without error in the log, but the os command is not being run.
I tried again with:
COMMAND: /usr/bin/vmrun
PARAMETER_LIST: ?-T?server?-h?https://server:port/sdk?-u?user?-p userpassword?-gu?guest?-gp guestpassword?runProgramInGuest "[standard] VM/Virtual Machine.vmx"?-activeWindow?-interactive?"c:\path_to_program\program.exe"?/switch?
RESULT_CODE:
SCRIPT:
SUCCESS_THRESHOLD: 0
with the same result.
And I also tried calling sh:
COMMAND: bin/sh
PARAMETER_LIST:
RESULT_CODE:
SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
SUCCESS_THRESHOLD: 0
also with the same result.
The process runs in each case, and ends with: "Log file is available", but when I look in the log, I don't see errors or any information that might help me adjust the user defined activity.This method works:
COMMAND: bin/bash
PARAMETER_LIST:
RESULT_CODE:
SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "standard VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
SUCCESS_THRESHOLD: 0
The issue seems to be caused on an upgrade to OWB 11R2. Our installation does not always update the VALUE entry when a user types in a value, meaning that our entry changes were not reflected into the deployed process package. -
User Defined Activity "hangs" Process Flow if it runs for more than 10mins
I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
BUT
If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
my "user defined" activity has
COMMAND: /usr/bin/ksh
PARAMETER_LIST bound to a variable which is set earlier in the process flow.
RESULT_CODE:
SCRIPT :
SUCESS_THRESHOLD : 0
by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
I can see that the variable contents assigned to RESULT_CODE look like this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
or this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
(like in Runtime.properties
property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
except maybe
.........Nativeexecution.timeout = .....?????
Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
Can anyone help?I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
BUT
If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
my "user defined" activity has
COMMAND: /usr/bin/ksh
PARAMETER_LIST bound to a variable which is set earlier in the process flow.
RESULT_CODE:
SCRIPT :
SUCESS_THRESHOLD : 0
by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
I can see that the variable contents assigned to RESULT_CODE look like this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
or this
'/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
(like in Runtime.properties
property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
except maybe
.........Nativeexecution.timeout = .....?????
Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
Can anyone help? -
User Defined activity does not log messages
I have created a User Defined activity which calls a unix shell script.
This script writes messages to standrard output ("echo") that I want
the process flow to catch in its log, so I can see the messages in
Control Center Manager.
This was actually the behaviour of my User Defined activity until recently.
I must have changed, unintentionally, some parameter/configuration that
I cannot remember. Maybe some "suppress script-messages" parameter? :-)
Anyone in this forum who knows which paramater I might have changed
and/or how I can get back the old behaviour of my activity?
// PontusI had the same experience recently: I was trying to log a message to a Unix file, but the process flow would always fail, even though the script executed well from the Unix prompt.
The problem in my case was that redirection is not supported from within an OWB version 9.0.4 process flow. Once I eliminated the "echo My message > logfile" everything was fine. You can even keep "echo My message" with no redirection and it's still ok.
The above holds regardless of where you put your script -- external Unix file, or as part of an "external process" icon in the flow.
If things are the same in your case, you'll need to figure out an alternative way of logging messages when executing the script. I decided to use external files as flags, by renaming them from the script.
Santiago -
User Defined Activity Process Flow Help
Hello,
I'm trying to create a process flow that will rename a file. I'm using the User Defined Activity, but I've ran into a couple problems. First some background info, Oracle 10G is the DB, and it's ran on a Unix system, the Oracle user account does have read/write access to the directories used.
For the Activity Parameters I've set
Command > I've tried everything here
Parameter > Blank
Script >
filefullname=ip_xref.dat
filename=${filefullname%.*}
fileext=${filefullname##*.}
DATE=`date +%Y%m%d`
newfilename="${filename}_${DATE}.${fileext}"
mv $filefullname $newfilename
mv $newfilename backup/
in the command section, I've tried every possible thing I can think of from : /usr/bin/ksh, /bin/ksh, ksh, /bin/bash, made a script outside owb with the same thing, and pointed it at that and still all I get is "/bin/bash: not found" or "/usr/bin/ksh: not found"
Ideas/suggestions, I'm open to anything.
As a side note I tried to do it with UTL_FILE, but I was informed by our DBA that it was disabled for security, so that's out.What type of execution is configured for user defined activity (this type is defined in file Runtime.properties on server side, available types for UDA - SCHEDULER or NATIVE_JAVA)?
For SCHEDULER type ask your DBA about Uinux user used for executing external jobs (usually nobody user used with very limited rights - maybe this user doesn't have rights for executing any program/scripts).
Regards,
Oleg -
How to create user defined button in alv report
how to create user defined button in alv report
thnks in advance.Hi,
U can define it the the PF-STATUS ( Menu for ALV ).
For that u have to define it in the EVENTCAT.
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
And in the DISPLAY
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
endform. " Z_EVENTCAT
Now double click on ALV MENU nad u can create a button in the application bar.
Regards,
Pritha. -
How to use user-defined packages in JAX-RPC web service
I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
package supercomputer;
import Hello.*;
public class SuperImpl implements SuperIF
public String sendParam(String data)
Temp ob=new Temp();
int i=ob.get1(10000);
return data+"returned by supercomputer";
Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
[echo] Running the supercomputer.SuperClient program....
[java] java.rmi.ServerException: Missing port information
[java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
[java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
[java] at supercomputer.SuperClient.main(Unknown Source)
I dont know if it deploys why it gives error on client side.
Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
Please guide me in doing that.
Thanks,
FarrukhFarrukh,
I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
As I already said, I have doubts that your error should be originated from a missing class from your package, but:
-try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
-try to see if you can access your endpoint through your browser to see if there is a online status
-display your config/WSDL file, and the steps you did to build your web service.
regards,
Pedro Salazar. -
How to import user defined class in UIX page?
Does anyone know how to import user defined class in UIX page so that the class can be called in the javascript in the UIX ?
Thks & Rgds,
Bennywhat you are referring to is not javascript.
it is JSP scriptlets. These are very different.
In order to keep a strict separation between View and Controller, it is not possible to run arbitrary java code from within your UIX code.
However, you can run java code from within a UIX event handler; see:
http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper904/jdeveloper/helpsets/jdeveloper/uixhelp.jar!/uixdevguide/introducingbaja.html
event handler code is run before the page is rendered. -
How to map user-defined fields in XML communication on SRM site
Hi All!
We use the External sourcing scenario and we transfer requirements from ERP in SRM through XI (PurchaseRequestERPSourcingRequest_In)
We should transfer the user-defined fields, but we can not map it in SRM site.
We have enhanced enterprise service in XI, have realized BADI PUR_SE_PRERPSOURCINGRQCO_ASYN on ERP site.
I see the XML message with ours z-fields in tr. SXI_MONITOR (into SRM), but I can not find it in BBP_PDISC.
We try to use BADI BBP_SAPXML1_IN_BADI (there is no method for SC), and BADI /SAPSRM/BD_SOA_MAPPING (z-fields is empty)
Someone can tell how to map user-defined field for SC?
Thanks in advance
Evgeny IlchenkoHello, Julia
We have found solution our problem
We have enhanced standard service in a new enhancement name space and defined own enhancement elements in our namespaces. Then these enhancement elements refered to the SAP standard Enterprise Service.
But In our new interfaces were different XML namespaces
When we have correct an error we could use the next BADI
on ERP site: PUR_SE_PRERPSOURCINGRQCO_ASYN
on SRM site: /SAPSRM/BD_SOA_MAPPING
BR,
Evgeny -
How to create User Defined Variables in Procurement Contract 12.1.3
Hi,
We are using Procurement Contract 12.1.3. As per our business requirement while creating contract template we need to use many variables which are not available in 'System Defined' variable list. Please guide us with some samples (step by step) how to create the 'User defined' variables.
Regards,
PrabhuHi Prabhu,
Did you get the setps how to create user defined variables in Procurement contracts? if so please share me the setp by step flow.
Prakash -
How to alter user defined objects in oracle
Hi all,
Can any one tell me how to alter user defined objects in oracle .
Thanks,
P Prakashprakash wrote:
Hi all,
Can any one tell me how to alter user defined objects in oracle .
DROP
then
CREATE
Handle: prakash
Email: [email protected]
Status Level: Newbie (80)
Registered: Feb 3, 2011
Total Posts: 185
Total Questions: 67 (65 unresolved)
so many questions & so few answers.
How SAD!
Edited by: sb92075 on Sep 22, 2011 9:22 AM -
How to remove User Defined field in programitically
Hi,
How to remove user defined field in programitically. send the code
Thanks,
P.Suresh KumarHi,
Please take a look at this thread:
Re: Can't remove a user defined field with DI API.
Kind Regards,
Owen -
How to create user defined transactioncode in bw
hi,
How to create user defined transactioncode in bw.My user want this
regards,
Abhishekhi
by using the t code SE93 u can create.
after that it will ask u for what ur going create
1.Program and screen
2.Program and selection screen
3.method of class
4.transaction with variant
5.transaction with parameter
here u have to select appropriate option based on ur requirement
and enter the options as per ur needs save and activate -
How to add user defined tab in the Header level of T-Code O4NM?
How to add user defined tab in the Header level of T-Code O4NM?
I tried with BADI but I cant able to find any BADI for it and also searched for screen exit too..Can you check the user exits,
OIJNOM_N and OIJTKT_N
Cheers,
Balaji
Maybe you are looking for
-
Hello! I'm puzzled with API docs: public JTextField() Constructs a new TextField. A default model is created, the initial string is null, and the number of columns is set to 0. But when I read the textfield with textfield.getText I do not get a null
-
Oracle AQ: Message not removed from source queue after propagation
Hi. I have been playing around with a test setup for a "fanning out"-propagation system. I have created three queues, SRC_Q, DEST_Q and DEST2_Q. The propagation seems to work fine, the messages that I put on the SRC_Q get propagated to the destinatio
-
The new 'improved text selection feature' is too sensitive.
The new 'improved text selection feature' is too sensitive. It tends to highlight a whole page whenever i try to highlight just a single line. And then it keeps on crashing! Please fix!
-
Approvals grid in PWA 2013 receives an exception for a user
I have a user that is no longer able to view their approvals from PWA 2013. They are getting a General Unhandled Exception error instead. Nothing is writing to the queue or the ULS logs when this occurs. The message they are getting on the screen
-
Smartview v11.1.1.3 drill through reports does not work in grids?
Hi, I'm using v11.1.1.3 and know there is a drill through function to FDM from Smartview grids. I've tried but it does not work in the grids, only works in the forms. However, I'm able to drill through to FDM from workspace grids. Does anyone encount