How to get child process instance id from main process
Hi All,
I have a main process invoiking a child process 1 and child process 1 inturn calling child process 2.Is there any way to get the child process 2 instance id from main process or main process instance id from child process 2.. Using tree finder in BPEL Control i can find the direct sub process(child 1) instance id from the main process instance. Is it possible to trace Sub process 2 instance id without going for the instance detail of sub process 1.
Thanks in advance
ChitraDevi
you could easily derive this from the bpel cube_instance table. using cikey and parent_id columns. you can use IInstanceMetaData javadoc, it has method called getParentId( ) to get the id. you can get the root id (instance-id of the main bpel process instance) using getRootId( ). you can checkout this blog.
http://tech-sash.blogspot.com/2008/04/oracle-soa-suite-retrieving-process.html
Similar Messages
-
Getting process instance id from within java control
Hi,
here's a brief description of what i need to do. I have a group of processes which i start using one common interface (jpd control). the problem is, that when new process is created it needs to be added to a db table. So to have this done automatically i created a java control with a variable of jpd control. information that needs to be put in db is the process instance id.
does anyone have any idea why after calling clientRequest (without return) method getConversationID() of the process control gives null as a result? i'm sure that the process was successfully started and completed.
i don't know if this can have an influence on this, but this happens only if process is started from another process which was started in the same way from yet another process. to make it more clear...
baseProcess -> (startSubprocess -> startsubSubprocess)
both subprocesses are started in the same way from java control, but in the subprocess of the subprocess one getConversationID() returns null.i found the solution, which is that process controls should be generated from statefull process. when the process was stateless calling getConversationID() method from process control returned null.
-
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
How to get rid of the other from the MacBook Air Memory?
How to get rid of the other from the MacBook Air Memory? I reviewed my newly purchased MBA ear;y 2014 i7 8GB RAM and there was 24+ GB of "Other". I have Yosemite. I have restored to factory with no luck. is there a memory cleaner or process to eliminate what is not needed in Other? I know some files there are settings, and such but not 24+ GB worth is such of stuff.
About “Other”:
http://support.apple.com/en-us/HT202867
Go step by step and test.
1. Start up in Safe Mode.
http://support.apple.com/kb/PH11212
2. Backup your computer.
3. Empty Trash.
http://support.apple.com/kb/PH13806
4. Disk space / Time Machine ?/ Local Snapshots
Local backups
http://support.apple.com/kb/ht4878
5. Delete old iOS Devices Backup.
iTunes > Preferences > Devices
Highlight the old Backups , press “Delete Backup” and then “OK”.
http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
6. Re-index Macintosh HD.
This will take a while. Wait until it is finished.
System Preferences > Spotlight > Privacy
http://support.apple.com/kb/ht2409
7.Try OmniDiskSweeper. This will give the storage size details of the items.
https://www.omnigroup.com/more
Select Macintosh HD and click “Sweep Selected Drive” at the bottom.
Be careful. Delete only the files that can be safely deleted. If you are not sure about any file, don’t touch it.
8. Move iTunes, iPhoto and iMovie media folders to an external drive.
iTunes
http://support.apple.com/en-us/HT201562
iPhoto
http://support.apple.com/kb/PH2506
iMovie
http://support.apple.com/kb/ph2289 -
How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP server
In 9iAS 9.0.2 Oracle HTTP Server (OHS) is pre-configured to assign requests to the Home OC4J instance via the URL-prefix "/j2ee"/
For example, the TEST servlet under OC4J would be passed through OHS using:
http://urmachine:urApachePort/j2ee/TEST
whereas in the standlone OC4J version, this URL works:
http://urmachine:urOC4JPort/TEST
How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP Server?It is getting the url prefix from mod_oc4j.conf
under /ora9ias/Apache/Apache/conf
You can read more on this at
http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a92173/confmods.htm#1008977
-Prasad -
How to get the backup of photos from i cloud id ?
plz provide me the answers as soon as possible.
BALAJI_PRASANNA wrote:
Hello,
I am very new to Labview. Í have an image of an LED and wanted to find the luminance value. I got the luminance image from the IMAQ ExtractSingleColorPlane but the value is not displaying. I just wanted to know how to get the value of luminance from the IMAQ ExtractSingleColorPlane. I have attached what i have done below.
Thanks in advance.
Before learning about LabVIEW, learn about images. An Image (in LabVIEW) is a "representation of an image", that is, the wire itself doesn't really have a "value", but "points to" a collection of data that can be "imaged" (i.e. looked at as through it were a picture), "manipulated" (for example, extracting a color plane, basically getting the "red channel", an image looking as through it were viewed through a red filter), and possibly returning arrays of numbers representing the intensity of the light at a certain position in the picture.
BS -
How to get the default selection color from JTable
Hi, there,
I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
Thanks,
-JennyThe windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
http://www.discoverteenergy.com/files/ShowUIDefaults.java
Any of the properties can be changed for the entire application by using:
UIManager.put( "propertyName", value ); -
How to get password as string back from encrypted password byte array.
Hi All,
I am storing encrypted password and enc key in the database.(Code included encryptPassword method for encryption and validatePassword method for validating of password). Problem is that for some reason i need to show user's password to the user as a string as he/she entered. But i am not able to convert the encrypted password from D/B to original String.
Tell me if any body know how to get the string password back from the encrypted password byte array after seeing my existing encryption code.
//********* Code
private Vector encryptPassword(byte[] arrPwd)
try
// parameter arrPwd is the password as entered by the user and to be encrypted.
byte[] encPwd = null;
byte[] key = null;
/* Generate a key pair */
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
keyGen.initialize(1024, random);
KeyPair pair = keyGen.generateKeyPair();
PrivateKey priv = pair.getPrivate();
PublicKey pub = pair.getPublic();
/* Create a Signature object and initialize it with the private key */
Signature dsa = Signature.getInstance("SHA1withDSA", "SUN");
dsa.initSign(priv);
/* Update and sign the data */
dsa.update(arrPwd, 0, 12);
/* Now that all the data to be signed has been read in, generate a signature for it */
encPwd = dsa.sign();
/* Now realSig has the signed password*/
key = pub.getEncoded();
Vector vtrPwd = new Vector(2);
vtrPwd.add(encPwd);
vtrPwd.add(key);
return vtrPwd;
catch (Exception e)
private boolean validatePassword(byte[] arrPwd,byte[] encPwd,byte[] key) throws RemoteException
try
// arrPwd is the byte array of password entered by user.
// encPwd is the encrypted password retreived from D/B
// key is the array of key through which the password was encrypted and stored.
X509EncodedKeySpec KeySpec = new X509EncodedKeySpec(key);
KeyFactory keyFactory = KeyFactory.getInstance("DSA", "SUN");
PublicKey pubKey = keyFactory.generatePublic(KeySpec);
/* Encrypt the user-entered password using the key*/
Signature sig = Signature.getInstance("SHA1withDSA", "SUN");
sig.initVerify(pubKey);
/* Update and sign the password*/
sig.update(arrPwd, 0, 12);
return sig.verify(encPwd);
catch (Exception e)
Help upto any extent would be appreciated.
Thanx
Moti SinghHi All,
I am storing encrypted password and enc key in the
database.(Code included encryptPassword method for
encryption and validatePassword method for validating
of password). Problem is that for some reason i need
to show user's password to the user as a string as
he/she entered. But i am not able to convert the
encrypted password from D/B to original String.No, you are not encrypting the password in your code, you are merely signing it.
Tell me if any body know how to get the string
password back from the encrypted password byte array
after seeing my existing encryption code.It is impossible to retrieve the original text out of a signature.
You should read up on some encryption basics in order to understand the difference between signing and encrypting. Then you can find examples of how to encrypt something here: http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html.
Actually there is one class specifically for keeping keys secure, KeyStore http://java.sun.com/j2se/1.4/docs/api/java/security/KeyStore.html
- Daniel -
How to get list of file names from a directory?
How to get list of file names from a directory?
Please helpIn addition, this:
String filename = files;Should be this:
String filename = files;
That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized. -
anyone knows how to get the photos after IMG_9999 from iphone? :-(ps:... i got them all in my camera roll but when i connected to the computer there's nothing after IMG_9999.. many thanks :-)
They show in the camera roll, just not your computer?
Have you checked every folder that is in the DCIM folder? -
How to get current/present version guid from CRMD_ORDERADM_H ?
Hi,
Can any one tell me how to get the current version guid value from CRMD_ORDERADM_H table for Business Object type 'BUS2000113' .
For example for one contract if we have more than one version then how to get the latest version guid from this table?
If I use FM ' BBP_PD_CTR_GETDETAIL' and in version table how to know which one is the latest/current version?
Need information for versions.
Thanks a lot.
Kevin.Hello Kevin,
In FM <b>' BBP_PD_CTR_GETDETAIL'</b> look at version table <b>E_VERSION</b> - Here you can check 'VERSION_' or there is another field 'CREATED_AT' - by using these you will get latest version.
Regards,
Shiv -
How to get InputStream of uploaded file from request?
The situation:
Client is uploading xml file to server.
<form METHOD=POST ENCTYPE = "multipart/form-data" action="SendFile" accept="text/xml">
<input type="file" name="SentFile" />
<input type="submit" value="go"/>
</form>Then I need to parse data from file.
I want to use method javax.xml.parsers.DocumentBuilder.parse(InputStream is)
But, how to get InputStream of uploaded file from request?You cannot get the InputStream of the uploaded file directly. The InputStream you can obtain from request.getInputStream() contains a lot of other data as well as the uploaded file. You will have to parse the data in the InputStream to find the data that belongs to the file.
A short cut is to use the HTTP Multipart File Upload available from www.jenkov.com. It simplifies file upload and makes it easy to obtain an InputStream for only the uploaded file. It also handles upload of multiple files. It is free, open source, Apache license, so if it doesn't fit your needs, you can always read the code and see how it works. Then write your own upload servlet. -
How to get customer number and name from the SD document
Hi All,
Can you please let me know how to get Customer Number and Name from the SD Document?
Thanks a lot....
AnilHi,
It will be displayed in the SD (BIlling document) itself, you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
regards,
radhika
Edited by: kolipara radhika on Jul 10, 2009 5:32 AM -
How i get data in matrix grid from A/P Invoice
How i get data in matrix grid from A/P Invoice before click add button
Hi,
Are you trying to read the data in the matrix of a system form? Then you only have to look for the matrix with the ID you can see by visualising the System Information in B1 and then directly read from the matrix cells (using columns element in matrix), the DBDataSources are not filled in until the document has been added to the database.
There are many messages in this forum talking about how to read information in matrix item, just make a search for it.
Hope it helps
Trinidad. -
I broke my iPhone 5 now using a 4 but don't know if or how to get my photos ect..from the 5 to the 4.can I do this and how plse help
Restore the backup of your iPhone 5 to your iPhone 4. It will contain your camera roll photos.
To do this, first make sure the iPhone 4 is running the same or higher version of iOS as your iPhone 5 was. If it isn't, you'll need to update it first. Then, to restore the iCloud backup, you'll have to begin by erasing the iPhone 4. If you have any newer data on the iPhone 4 that is not contained in the iPhone 5 backup, you'll need to save that first. When you're ready, go to Settings>General>Reset, tap Erase All Content and Settings, then go through the set screens on the iPhone 4 and when given the option, choose Restore from iCloud backup and follow the prompt, choosing the backup of your iPhone 5 to restore to. Be sure it is connected to wifi and your charger as it is restoring the backup.
Maybe you are looking for
-
Cannot open nib - The application Interface Builder quit unexpectedly
Just installed the iPhone SDK and installed sample code. The Interface Builder will not start. At startup, the following message is displayed: "The application Interface Builder quit unexpectedly." I've tried the standard Xcode SDK and it has the sam
-
Selecting browse in bridge in photoshop 2014 launches CC applet, what is happening?
I have updated my system with the new Creative Cloud Application (Lightroom 5.5, Photoshop 2014 and latest Bridge) Now I am getting all sorts of errors. At first I could use Edit in Photoshop 2014 command in Lightroom and the image would open in Pho
-
The complete error message says: The program can]t start because MSVCRXO.DLL is missing from your computer. Try reinstalling the probram to fix this problem. Itunes seems to be working fine on my IPHONE 4S phone and IPAD. Thanks for your input.
-
Hi, I need to have a sprite that acts as a blur filter for whatever is below it... i.e. if its a square on top of a photo, then the photo is blurred underneath the square, but nowhere else. I've seen a few examples where displayFilters were used to c
-
Is there a new way to download videos on Safari when using Lion?
Since I upgraded to Lion 10.7.3, the method I was using to download videos, from YouTube and other internet sites, no longer works. This method (with Snow Leopard) involved going to the Window menu, clicking on Activity, and finding the video file i