Information about ByteArray class
i need some information abt ByteArray class like whats the package we need to import if we are using that class and whats the syntax of using the ByteArray can any one reply to this.........................
As far as I can see there's no ByteArray class in the standard API.
There are java.io.ByteArrayInputStream and java.io.ByteArrayOutputStream objects, and also there's java.util.BitSet.
The syntax for them is the same as for any other part of the language. You probably mean the API. The API is in fact well-documented, just like most of the API.
You don't need to import any package. You do need to import the classes or just refer to them with their full name (including package).
All these things are determined from reading the documentation.
Do you have any specific questions?
Similar Messages
-
Information about Graphics class
how will I be able to see the source code of the graphics class.
As far as I can see there's no ByteArray class in the standard API.
There are java.io.ByteArrayInputStream and java.io.ByteArrayOutputStream objects, and also there's java.util.BitSet.
The syntax for them is the same as for any other part of the language. You probably mean the API. The API is in fact well-documented, just like most of the API.
You don't need to import any package. You do need to import the classes or just refer to them with their full name (including package).
All these things are determined from reading the documentation.
Do you have any specific questions? -
Getting information about a class using generics...
Hi there.
I have declared a class: "public class SomeClass<SC extends SomeClass>{/*Do something*/}".
Can anyone tell me why a statement like "System.out.println(SC.class.getSimpleName());" within a method defined in SomeClass will not compile? Is there some other way to achieve what I want?YoungWinston wrote:
Owen Thomas wrote:
Well then, it would be great to be able to key a switch that tells the compiler one isn't working with "legacy code", if this might allow generics to reach a hitherto untapped potential.I don't see how, since not everybody is going to need (or want) such a switch. It also sounds like a recipe for disaster. Should we add such a switch for every enhancement that might have backwards-compatibility problems?Isn't that what the "deprecated" feature is for? Sure, there'll be backwards compatibility issues for a while, but after a few years, with management, things should settle as code is moved from pre to post "super-generics".
Much of the Java core, and many third-party libraries might have to be re-written in that circumstance... economic stimulus.How could the Java core have been re-written if it requires use of a "not backwards-compatible" flag?i have not reason to believe that code compiled under a super-generics switch need not be backwards-compatible. One may have to simply exercise care in its use.
I didn't want to bore you with trivia, and I didn't want you to frustrate me with more quips (well-meant though I'm sure they are) about how to write code. ;-)In which case I can only assume that you're using generics for something that probably, more correctly, requires reflection. Have you looked at the relevant parts of Class, as I suggested?No, but as you are impressing on me to have a look, I could do no wrong to have a sniff around. However, with no specific motivation in the current context, I don't think anything will catch my eye. The current need isn't great enough. -
More information About TransactionUnitHelper
Can i know more information about TransactionUnitHelper Class, i dint find much info in devguide,
Did you try using startTransactionUnit whenever you make changes to the field values and on click of another link, make a call to isTransactionUnitInProgress to see if the transaction has ended or not and display the alert.
I dont think Menu clicks would qualify for this anyway.
Thanks
Tapash -
Looking for information about AS3 sound classes in "audio" wrong places?
I'm looking for in depth information about ActionScript 3.0 sound classes. No matter where I search I continually encounter the same sort of kindergarten level descriptions, which never teach more than what we can readily glean from Adobe's documentation. Someone must know where there a discussion that really gets to the heart of the matter.
I've read Adobe's LiveDocs on the Sound, SoundChannel, SoundMixer, SoundTransform classes. Indeed, they provided me enough guidance to create my own streaming MP3 player, with volume, pan, my own custom mono mix, http request, a preloading animation, and peak meters ...
Here's an example (in the last statement of the following code) where I understand the end effect, but I fail to comprehend what happens at the compiler level:
var currentSoundSource:Sound = new Sound();
currentSoundSource.load(new URLRequest("http://www.mySite.com/myRecording.mp3"));
var audioChannel_01:SoundChannel = new SoundChannel();
audioChannel_01 = currentSoundSource.play();
Unfortunately the class definitions in LiveDocs are quite terse, and they're seemingly incomplete with respect to:
• advice on best practices
• a thorough coverage of class to class interactivity
• a description of exactly how audio streams/plays into channels
... and in certain cases it appears that Adobe's descriptions are not fully accurate.*
Regarding best practices, at first blush I'm sure everyone ponders over the fact that SoundChannel and SoundMixer have a stop method while the Sound class does not.
One assumes that this surprising design must bear some advantages. If so, what are they? Where are the analog sound mixer analogies? What would be the disadvantage of a sound class with a stop method ... particularly when they have their own play method?
Where are the discussion of these concepts? (Even if Adobe hired the wrong guy to write its sound classes, there should be some follow through that thoroughly explains the existing situation.)
Phrankie
* Here's an instance where the docs appear to be partially in error. (Is "and play" mistakenly included in the following?)
"The Sound class lets you lets you create a new Sound object [and] load and play an external MP3 file into that object."
... uh, mmmmmm ... we play an MP3 into a sound class object?
Wouldn't it be more accurate to say the following:
A soundChannel can receive the audio data from a sound class object. We can play a sound object into an SoundChannel and manipulate it by altering the SoundChannel's soundTransform property, and we can stop it with the SoundChannel's stop method.check everything you can find written by tinic uro. this will get you started: http://www.kaourantin.net/
-
Information about the ExternalConnection class inFramework.
There has been a lot of email asking about this class lately so here is
the latest on the status of the ExternalConnection class.
Currently the feature is in Beta. However it MAY be productized in 2F.
After a successful period of beta testing for the ExternalConnection
feature, we decided to widen the distribution of it. So we will provide
the example and documentation to any customer that asks for it.
You can get the documentation either from your Forte rep or Technical
Support. The example can also be emailed to you.
There is one outstanding bug in 2E, but it will only occur if you try
and write while reads are still outstanding on the same connection.
Hope this answers some questions.
kathy
Katherine A. Brown
Technical Support Team Manager
Forte Customer Services
=================================
(ph) 510.869.3439
(fax) 510.869.2010
(email) [email protected]
(hotline) 510.451.5400
=================================
From a Chinese fortune cookie: Customers are the precious things
Goods are only grass.
=================================Hi Julien,
The main reason is portability. It's true that in many J2EE implementations it is possible to access an EJB's Home object without going through the component context (java:comp/env), but all such approaches are NOT portable. In the J2EE programming model, all resource access is made via the private component namespace. Using this level of indirection allows the bean developer to code the application without having to know which physical resource will be used at runtime. Each J2EE implementation can use a different scheme to identity physical resources, so by sticking to logical references in your code, you guarantee portability. Finally, you have the advantage that you can change which physical resource is mapped at deployment time without having to change your code.
So, the bottom line is, whenever you have any J2EE component (ejb, servlet, jsp, Application Client) that looks up an ejb, data source, queue, connection factory, etc., always use the environment reference type that J2EE defines for it and look it up via java:comp/env.
--ken
Kenneth Saks
J2EE SDK Team
SUN Microsystems -
Make information about the current user available in a managed bean
I've overridden prepareSession in an Application Module (AM) so that when a user logs into my application, it immediately uses the username as a bind variable to execute the query for a View Object (VO) that gets more information about the user, like full name, e-mail address ... This works fine and I'm able to bind the VO to a page and display the information.
But now I'm beginning to realize that I'm going to need this information about the user throughout the application. Do I have to include an iterator for the user info VO and associated attributeValues on every single pageDef, or is it possible to write a single managed bean that will expose the attributes of the single row of the VO as properties. The application I'm working on now is a "minor" upgrade of a JDeveloper 10.1.3 application, so I need a 10.1.3 solution, but I have a 11.1.2 application in the works that will probably do the same thing.
Oh, and sorry if this is an FAQ - I'm probably not using good search terms to find solutions that have already been posted.Thank you Nick -
Your code didn't give me exactly the answer I needed, but it pointed me in the right direction. For one thing, I had a version of ADFUtils that didn't have the getApplicationModuleForDataControl method. However I was able to do a Google search and find working code for the missing method. And since the values I need to expose in the managed bean are from the VO, not the AM, I had to go one step further and get a reference to the VO from the AM, and then a reference to the first (and only) row of the VO.
For anyone else with this question, here's my version of the code:
public class UserInfo implements Serializable {
private String eMail;
private String stateCode;
private String fullName;
public UserInfo() {
AppModuleImpl appModule =
(AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
ContactInfoViewImpl contactInfoVO =
(ContactInfoViewImpl)appModule.getContactInfoView1();
contactInfoVO.reset();
ContactInfoViewRow contactInfo =
(ContactInfoViewRow)contactInfoVO.first();
stateCode = contactInfo.getConStCode();
System.out.println("At construct UserInfo stateCode=" + stateCode);
eMail = contactInfo.getConInternetAddr();
System.out.println("At construct UserInfo eMail=" + eMail);
fullName =
contactInfo.getConFname() + " " + (contactInfo.getConMi() != null ?
contactInfo.getConMi() +
" " : "") +
contactInfo.getConLname();
System.out.println("At construct UserInfo fullName=" + fullName);
public String getStateCode() {
return stateCode;
public String getEMail() {
return eMail;
public String getFullName() {
return fullName;
} -
To ragnic and other about Singleton class
Hi ragnic. Thanks for your reply. I posted the code wrong. Heres' my correct one.
I have a GUI first loaded information and the information is stored in a databse, I have some EJB classes..and my singleton class ABC has some method to access to the EJB..
so my first GUI will gather info using singleton class and later if I click on
a button in my first GUI class, will pop up another frame of another class , this class also need to class setPassword in my Singleton..
are my followign codes correctly??
iS my Class ABC a SINgleton class? thanks
Is my class ABC use as single correctly. And It is called from other classes is also correct?
I'm new to java and like to learn about Singleton class.
But I really dont' understand it clearly after reading many examples of it.
I have a project to convert my class abc to a singleton.
But I dont know how to do it.
In my class(soon will become a singleton) will have few methods that later I need to use it from another class A and class B.
I have a GUI application that first load my class A..and my class will call
class abc(singleton) to get some information from it.
and then in class A has a button, if I click on that button I will call SIngleton class again to update my password, in the singleton class has method calls updatePassword. But I dont know how to call a singleton from other class.
I have my code for them below:
1)public class ABC //attempt using a singleton
private static ABC theABC = null;
private ABC(){}
public synchronized static ABC getABC()
if(theABC == null)
theABC= new ABC();
return the ABC;
public void updateUserInfo(SimpleUser user)
throws UserNotFoundException, DelegateException
try
UserCollectionHome userCollectionHome = (UserCollectionHome)
EJBHomeFactory.getFactory().lookupHome("vista/UserCollection",
UserCollectionHome.class);
UserHome userHome = (UserHome)
EJBHomeFactory.getFactory().lookupHome("vista/User",UserHome.class);
UserCollection uc = userCollectionHome.create();
uc.updateUserInfo(user, userHome);
} catch(HomeFactoryException hfe) {
hfe.printStackTrace();
throw new DelegateException(hfe);
} catch(RemoteException re) {
re.printStackTrace();
throw new DelegateException(re);
} catch(CreateException ce) {
ce.printStackTrace();
throw new DelegateException(ce);
} catch(FinderException fe) {
fe.printStackTrace();
throw new UserNotFoundException();
public SimpleUser getID(String id)
throws UserNotFoundException, DelegateException
try
UserCollectionHome userCollectionHome = (UserCollectionHome)
EJBHomeFactory.getFactory().lookupHome("vista/UserCollection",
UserCollectionHome.class);
UserHome userHome = (UserHome)
EJBHomeFactory.getFactory().lookupHome("vista/User",UserHome.class);
UserCollection uc = userCollectionHome.create();
SimpleUser su = uc.getID(id, userHome);
return su;
} catch(HomeFactoryException hfe) {
throw new DelegateException(hfe);
} catch(RemoteException re) {
throw new DelegateException(re);
} catch(CreateException ce) {
throw new DelegateException(ce);
} catch(FinderException fe) {
throw new UserNotFoundException();
public void setPassword(String lname,String pw)
throws UserNotFoundException, DelegateException
try
UserCollectionHome userCollectionHome = (UserCollectionHome)
EJBHomeFactory.getFactory().lookupHome("vista/UserCollection",
UserCollectionHome.class);
UserHome userHome = (UserHome)
EJBHomeFactory.getFactory().lookupHome("vista/User",UserHome.class);
UserCollection uc = userCollectionHome.create();
uc.setPassword(lname,pw, userHome);//assume that all lname are differents.
} catch(HomeFactoryException hfe) {
hfe.printStackTrace();
throw new DelegateException(hfe);
} catch(RemoteException re) {
re.printStackTrace();
throw new DelegateException(re);
} catch(CreateException ce) {
ce.printStackTrace();
throw new DelegateException(ce);
} catch(FinderException fe) {
fe.printStackTrace();
throw new UserNotFoundException();
}//Do I have my class as a Singleton correctly???
2)//Here is my First Frame that will call a Singleton to gather user information
public A(Frame owner)
super(owner, "User Personal Information",true);
initScreen();
loadPersonalInfo();
* This method instantiates all the GUI widgets and places them into panels and
* onto the frame.
private void initScreen()
txtFname = new JTextField(20);
txtLname=new JTextField(20);
btnsave =new JButton("Save");
btnChange= new JButton("Click here to change PW");//when you click this button there will be a frame pop up for you to enter informaton..this iwll call class B
JPanel pnlMain=new JPanel();
JPanel pnlFname= new JPanel();
pnlFname.setLayout(new BoxLayout(pnlFname, BoxLayout.X_AXIS));
pnlFname.setBorder(BorderFactory.createEmptyBorder(0,87,0,90));
pnlFname.add(new JLabel("First Name:"));
pnlFname.add(Box.createRigidArea(new Dimension(5,0)));
pnlFname.add(txtFname);
JPanel pnlLname= new JPanel();
pnlLname.setLayout(new BoxLayout(pnlLname, BoxLayout.X_AXIS));
pnlLname.setBorder(BorderFactory.createEmptyBorder(0,87,0,90));
pnlLname.add(new JLabel("Last Name:"));
pnlLname.add(Box.createRigidArea(new Dimension(5,0)));
pnlLname.add(txtLname);
pnlMain.add(pnlFname);
pnlMain.add(pnlLname);
pnlMain.add(btnsave);
pnlMain.add(btnChange");
btnSave = new JButton("Save");
btnSave.setActionCommand("SAVE");
btnSave.addActionListener(this);
btnCancel = new JButton("Cancel");
btnCancel.setActionCommand("CANCEL");
btnCancel.addActionListener(this);
JPanel pnlBottom = new JPanel();
pnlBottom.setLayout(new BoxLayout(pnlBottom, BoxLayout.X_AXIS));
pnlBottom.setBorder(BorderFactory.createEmptyBorder(25,55,0,0));
pnlBottom.add(btnSave);
pnlBottom.add(Box.createRigidArea(new Dimension(25,0)));
pnlBottom.add(btnCancel);
pnlMain.add(pnlBottom);
this.setContentPane( pnlMain);
setSize(500,500);
GraphicUtilities.center(this);
theABC=ABC.getABC();
//Do I call my ABC singleton class correctly??
private void loadPersonalInfo()
String ID= System.getProperty("user.name");
SimpleUser user = null;
try {
user = ABC.getID(ID);
//I tried to use method in ABC singleton class. IS this correctly call?
} catch(UserNotFoundException nfe)
JOptionPane.showMessageDialog(new JDialog(),"You have not yet registered.",
"User Not Found",JOptionPane.WARNING_MESSAGE);
System.exit(0);
} catch(DelegateException de) {
JOptionPane.showMessageDialog(new JDialog(),"You have not yet registered",JOptionPane.ERROR_MESSAGE);
System.exit(0);
currentUser = user;
txtFname.setText(currentUser.getFirstName());
txtLname.setText(currentUser.getLastName());
//This information will be display in my textfields Fname and Lname
//I can change my first and last name and hit button SAVE to save
public void actionPerformed(ActionEvent e)
if(e.getActionCommand().equals("SAVE")) submitChanges();
if(e.getActionCommand().equals("CHANGE_PASSWORD")) {
changepassword=new ChangePassword(new Frame(),name,badgeid);
public void submitChanges(){
String currentNTUsername = System.getProperty("user.name");
SimpleUser user =null;
try {
user = theABC.getID(ID);
user.setFirstName(txtFname.getText().trim());
user.setLastName(txtLname.getText().trim());
currentUser = user;
theABC.updateUserInfo(currentUser);
//IS this correctly if I want to use this method in singleton class ABC??
} catch(UserNotFoundException nfe)
JOptionPane.showMessageDialog(new JDialog(),"You have not yet registered",
"User Not Found",JOptionPane.WARNING_MESSAGE);
} catch(DelegateException de) {
JOptionPane.showMessageDialog(new JDialog(),"You have not yet registered",JOptionPane.ERROR_MESSAGE);
System.exit(0);
this.setVisible(false);
3) click on ChangePassword in my above GUI class A..will call this class B..and in this class B
I need to access method in a Singleton class- ABC class,,DO i need to inititates it agian, if not what should I do? thanks
package com.lockheed.vista.userinfo;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.table.*;
import javax.swing.tree.*;
import java.util.StringTokenizer;
import java.util.Vector;
import java.io.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
import javax.swing.colorchooser.*;
import javax.swing.filechooser.*;
import javax.accessibility.*;
import java.beans.*;
import java.applet.*;
import java.net.*;
import org.apache.log4j.*;
import com.lockheed.common.gui.GraphicUtilities;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import vista.user.UserServicesDelegate;
import vista.user.SimpleUser;
import vista.user.UserNotFoundException;
import vista.user.*;
import com.lockheed.common.ejb.*;
import com.lockheed.common.gui.*;
import com.lockheed.vista.publish.*;
* This program allow users to change their Vista Web Center's password
public class ChangePassword extends JDialog
implements ActionListener{
protected final Logger log = Logger.getLogger(getClass().getName());
private UserServicesDelegate userServicesDelegate;
private User currentUser = null;
private JPasswordField txtPasswd, txtVerifyPW;
private JButton btnSubmit,btnCancel;
private JLabel lblName,lblBadgeID;
private String strBadgeID="";
* This is the constructor. It creates an instance of the ChangePassword
* and calls the method to create and build the GUI.
public ChangePassword(Frame owner,String name,String badgeid)
super(owner, "Change Password",true);
initScreen(name,badgeid);//build the GUI
* This method instantiates all the GUI widgets and places them into panels and
* onto the frame.
private void initScreen(String strname,String strBadgeid)
txtPasswd = new JPasswordField(20);
txtVerifyPW=new JPasswordField(20);
txtPasswd.setEchoChar('*');
txtVerifyPW.setEchoChar('*');
JPanel pnlMain=new JPanel();
pnlMain.setLayout(new BoxLayout(pnlMain, BoxLayout.Y_AXIS));
pnlMain.setBorder(BorderFactory.createEmptyBorder(20,0,20,0));
JPanel pnlPW=new JPanel();
pnlPW.setLayout(new BoxLayout(pnlPW, BoxLayout.X_AXIS));
pnlPW.setBorder(BorderFactory.createEmptyBorder(0,96,0,30));
pnlPW.add(new JLabel("Password:"));
pnlPW.add(Box.createRigidArea(new Dimension(5,0)));
pnlPW.add(txtPasswd);
JPanel pnlVerifyPW=new JPanel();
pnlVerifyPW.setLayout(new BoxLayout(pnlVerifyPW, BoxLayout.X_AXIS));
pnlVerifyPW.setBorder(BorderFactory.createEmptyBorder(0,63,0,30));
pnlVerifyPW.add(new JLabel("Verify Password:"));
pnlVerifyPW.add(Box.createRigidArea(new Dimension(5,0)));
pnlVerifyPW.add(txtVerifyPW);
JPanel pnlTop= new JPanel();
pnlTop.add(pnlPW);
pnlTop.add(Box.createRigidArea(new Dimension(0,10)));
pnlTop.add(pnlVerifyPW);
pnlMain.add(pnlTop);
btnSubmit = new JButton("Submit");
btnSubmit.setActionCommand("SUBMIT");
btnSubmit.addActionListener(this);
btnCancel = new JButton("Cancel");
btnCancel.setActionCommand("CANCEL");
btnCancel.addActionListener(this);
JPanel pnlBottom = new JPanel();
pnlBottom.setLayout(new BoxLayout(pnlBottom, BoxLayout.X_AXIS));
pnlBottom.setBorder(BorderFactory.createEmptyBorder(25,55,20,30));
pnlBottom.add(btnSubmit);
pnlBottom.add(Box.createRigidArea(new Dimension(25,0)));
pnlBottom.add(btnCancel);
pnlMain.add(pnlBottom);
this.setContentPane( pnlMain);
setSize(350,230);
setVisible(true);
public void actionPerformed(ActionEvent e)
if(e.getActionCommand().equals("CANCEL")) this.setVisible(false);
if(e.getActionCommand().equals("SUBMIT")) submitPW();
* This method is called when the submit button is clicked. It allows user to change
* their password.
public void submitPW(){
myABC= ABC.getABC();//Is this correct?
char[] pw =txtPasswd.getPassword();
String strPasswd="";
for(int i=0;i<pw.length;i++){
strPasswd=strPasswd+pw;
char[] vpw =txtVerifyPW.getPassword();
String strVerifyPW="";
for(int i=0;i<vpw.length;i++){
strVerifyPW=strVerifyPW+pw;
if((strPasswd==null)||(strPasswd.length()==0)) {
JOptionPane.showMessageDialog(new JDialog(),"You have not enter a password. Please try again.",
"Invalid Password",JOptionPane.ERROR_MESSAGE);
if((!strPasswd.equals(strVerifyPW)))
//password and verify password do not match.
JOptionPane.showMessageDialog(new JDialog(),"Your passwords do not match. Reenter and try again.",
"Invalid Password",JOptionPane.ERROR_MESSAGE);
try
myABC.setUserPassword(strPasswd);//try to use a method in Singleton class
txtPasswd.setText("");
txtVerifyPW.setText("");
this.setVisible(false);
} catch(DelegateException e) {
JOptionPane.showMessageDialog(new Frame(),
"Error.",
"Unable to change password information.",JOptionPane.WARNING_MESSAGE);
} catch(UserNotFoundException e) {
JOptionPane.showMessageDialog(new Frame(),
"Error.",
"Unable to change password information.",JOptionPane.WARNING_MESSAGE);
And ofcourse I have other EJB classes to work with these classes.
***It compiles okey but when I ran, it say "NullPointerException"
I think I call my Singleton wrong.
Please help me.thanks1. When replying, use <reply>, don't post a new topic.
2. Implementing a singleton is a frequently asked question. Search before you post.
3. This is not a question about Swing. A more appropriate forum would be "New To Java Technology" or perhaps "Java Programming", but see point 1.
4. When posting code, keep it short. It increases the chance of readers looking at it. And in composing your shorter version for the forum, you just may solve your problem. -
Oracle BPM Java API - getting informations about process activities
Hi
I have a problem with Oracle BPM Java API, can someone help me?
I have a business process project deployed in Oracle SOA Suite and I need to get some informations of my process programatically via Java API.
Basically I need to get informations about process activities and the corresponding human tasks referenced by these activities.
I'm able to get the HumanTasks of my Business Catalog and also to get the Activities of my Process, but the relationship between them is null.
I did some tests, below a piece of code of my test:
IBPMServiceClient bpmServiceClient = BPMConnectionUtil.getBPMServiceClient();
IProcessMetadataService processMetadataService = bpmServiceClient.getProcessMetadataService();
IProcessModelService processModelService = bpmServiceClient.getProcessModelService();
List<ProcessMetadataSummary> processMetadataSummaryList =
processMetadataService.listProcessMetadataSummary(BPMConnectionUtil.getBPMContext(), "processNameOrId to find", "processName", "ASC");
if (processMetadataSummaryList == null || processMetadataSummaryList.size() == 0)
return;
ProcessMetadataSummary processMetadataSummary = null;
for (ProcessMetadataSummary summary: processMetadataSummaryList) {
if (summary.isIsDefaultRevision()) {
processMetadataSummary = summary;
break;
if (processMetadataSummary == null)
processMetadataSummary = processMetadataSummaryList.get(0);
IProcessModelPackage pack = processModelService.getProcessModel(BPMConnectionUtil.getBPMContext(), processMetadataSummary.getCompositeDN(), processMetadataSummary.getProcessName());
oracle.bpm.project.model.processes.Process process = pack.getProcessModel();
Sequence<UserTask> activities = process.getActivities(UserTask.class);
for (UserTask activity: activities) {
System.out.println("Human Task: " +activity.getHumanTask()); // <<<<<<<<<<<<<<<<<<<<---------------------------- here is the problem. the human task is null, but my activity have a task associated
There is another way to get this information?
Thank'sHi
I have a problem with Oracle BPM Java API, can someone help me?
I have a business process project deployed in Oracle SOA Suite and I need to get some informations of my process programatically via Java API.
Basically I need to get informations about process activities and the corresponding human tasks referenced by these activities.
I'm able to get the HumanTasks of my Business Catalog and also to get the Activities of my Process, but the relationship between them is null.
I did some tests, below a piece of code of my test:
IBPMServiceClient bpmServiceClient = BPMConnectionUtil.getBPMServiceClient();
IProcessMetadataService processMetadataService = bpmServiceClient.getProcessMetadataService();
IProcessModelService processModelService = bpmServiceClient.getProcessModelService();
List<ProcessMetadataSummary> processMetadataSummaryList =
processMetadataService.listProcessMetadataSummary(BPMConnectionUtil.getBPMContext(), "processNameOrId to find", "processName", "ASC");
if (processMetadataSummaryList == null || processMetadataSummaryList.size() == 0)
return;
ProcessMetadataSummary processMetadataSummary = null;
for (ProcessMetadataSummary summary: processMetadataSummaryList) {
if (summary.isIsDefaultRevision()) {
processMetadataSummary = summary;
break;
if (processMetadataSummary == null)
processMetadataSummary = processMetadataSummaryList.get(0);
IProcessModelPackage pack = processModelService.getProcessModel(BPMConnectionUtil.getBPMContext(), processMetadataSummary.getCompositeDN(), processMetadataSummary.getProcessName());
oracle.bpm.project.model.processes.Process process = pack.getProcessModel();
Sequence<UserTask> activities = process.getActivities(UserTask.class);
for (UserTask activity: activities) {
System.out.println("Human Task: " +activity.getHumanTask()); // <<<<<<<<<<<<<<<<<<<<---------------------------- here is the problem. the human task is null, but my activity have a task associated
There is another way to get this information?
Thank's -
How to get information about an eToken
Is there a way to obtain information about an Aladdin eToken from Java? I am interested to find out the Maximum Number of Password Retries for an eToken inserted in the USB. I am using the BouncyCastle provider. I saw that you can use the PKCS#11 functions C_GetSlotInfo and C_GetInfo from the class sun.security.pkcs11.wrapper.PKCS11 but I cannot find any connection to the Bouncy Castle provider. Thank you.
hi, you can use the sys_context function, like this:
select sys_context('userenv','current_user'),
sys_context('userenv','os_user'),
sys_context('userenv','host'),
sys_context('userenv','ip_address'),
sys_context('userenv','instance'),
sys_context('userenv','sessionid'),
sys_context('userenv','terminal')
from dual;
Is this what you 're looking for? -
In what table are stored information about BOR objects
Hi Gurus,
I have to find all objects like classes, function modules, reports and other related to BOR objects. Let say that I have BOR object type. With this information where can I find information about it? In which table this information are storred?
Best regards
Marcin CholewczukHi ,
SWOTDI Definition Interfaces
TOJTB Business object repository: Basic data
u can use search help in SE11 with table name equal to TOJ* -
Need information about unicode
Hello friends,
I need informatiion about an unicode to change english language in to regional language.Please give me information about same.
Thanx,
Rahul TaleleHi
Hope it will help you,.
Reward if help.
The Link will be helpful to you.
Re: Upgrade 4.6 to ECC - What are the responsibilites
regarding Unicode influence in Standard programs
Very good document:
http://www.doag.org/pub/docs/sig/sap/2004-03/Buhlinger_Maxi_Version.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d37d1ad9-0b01-0010-ed9f-bc3222312dd8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/589d18d9-0b01-0010-ac8a-8a22852061a2
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f8e316d9-0b01-0010-8e95-829a58c1511a
You need to use the transaction UCCHECK.
The report documentation is here
ABAP Unicode Scan Tool UCCHECK
You can use transaction UCCHECK to examine a Unicode program set for syntax errors without having to set the program attribute "Unicode checks active" for every individual program. From the list of Unicode syntax errors, you can go directly to the affected programs and remove the errors. It is also possible to automatically create transport requests and set the Unicode program attribute for a program set.
Some application-specific checks, which draw your attention to program points that are not Unicode-compatible, are also integrated.
Selection of Objects:
The program objects can be selected according to object name, object type, author (TADIR), package, and original system. For the Unicode syntax check, only object types for which an independent syntax check can be carried out are appropriate. The following object types are possibilities:
PROG Report
CLAS Class
FUGR Function groups
FUGX Function group (with customer include, customer area)
FUGS Function group (with customer include, SAP area)
LDBA Logical Database
CNTX Context
TYPE Type pool
INTF Interface
Only Examine Programs with Non-Activated Unicode Flag
By default, the system only displays program objects that have not yet set the Unicode attribute. If you want to use UCCHECK to process program objects that have already set the attribute, you can deactivate this option.
Only Objects with TADIR Entry
By default, the system only displays program objects with a TADIR entry. If you want to examine programs that don't have a TADIR entry, for example locally generated programs without a package, you can deactivate this option.
Exclude Packages $*
By default, the system does not display program objects that are in a local, non-transportable package. If you want to examine programs that are in such a package, you can deactivate this option.
Display Modified SAP Programs Also
By default, SAP programs are not checked in customer systems. If you also want to check SAP programs that were modified in a customer system (see transaction SE95), you can activate this option.
Maximum Number of Programs:
To avoid timeouts or unexpectedly long waiting times, the maximum number of program objects is preset to 50. If you want to examine more objects, you must increase the maximum number or run a SAMT scan (general program set processing). The latter also has the advantage that the data is stored persistently. Proceed as follows:
- Call transaction SAMT
- Create task with program RSUNISCAN_FINAL, subroutine SAMT_SEARCH
For further information refer to documentation for transaction SAMT.
Displaying Points that Cannot Be Analyzed Statically
If you choose this option, you get an overview of the program points, where a static check for Unicode syntax errors is not possible. This can be the case if, for example, parameters or field symbols are not typed or you are accessing a field or structure with variable length/offset. At these points the system only tests at runtime whether the code is sufficient for the stricter Unicode tests. If possible, you should assign types to the variables used, otherwise you must check runtime behavior after the Unicode attribute has been set.
To be able to differentiate between your own and foreign code (for example when using standard includes or generated includes), there is a selection option for the includes to be displayed. By default, the system excludes the standard includes of the view maintenance LSVIM* from the display, because they cause a large number of messages that are not relevant for the Unicode conversion. It is recommended that you also exclude the generated function group-specific includes of the view maintenance (usually L<function group name>F00 and L<function group name>I00) from the display.
Similarly to the process in the extended syntax check, you can hide the warning using the pseudo comment ("#EC *).
Applikation-Specific Checks
These checks indicate program points that represent a public interface but are not Unicode-compatible. Under Unicode, the corresponding interfaces change according to the referenced documentation and must be adapted appropriately.
View Maintenance
Parts of the view maintenance generated in older releases are not Unicode-compatible. The relevant parts can be regenerated with a service report.
UPLOAD/DOWNLOAD
The function modules UPLOAD, DOWNLOAD or WS_UPLOAD and WS_DOWNLOAD are obsolete and cannot run under Unicode. Refer to the documentation for these modules to find out which routines serve as replacements. -
Need information about interfaces and namespaces in actionscript 3.0
Hi,
I need information about actionscript interfaces and
namespaces, I'm preparing for ACE for Flash CS3 and I need to learn
about this subjects and I can not find resources or simple examples
that make these subjects understandable.
Anybody can help me!
Thanks a lot.Interfaces (cont.)
Perhaps the most useful feature of interfaces is that you not
only can define the data type but also method signature of the
class that implements this interface. In other words, interface can
define and enforce what methods class MUST implement. This is very
useful when classes are branching in packages and team of
developers works on a large application among others.
The general syntax for an Interface with method signatures is
written the following way:
package{
public interface InterfaceName {
// here we specify the methods that will heave to be
implemented
function method1 (var1:dataType,
var2:datType,…):returnType;
function method2 (var1:dataType,
var2:datType,…):returnType;
To the previous example:
package{
public interface IQualified {
function method1 ():void;
function method2 ():int;
Let’s write a class that implements it.
If I just write:
package{
public class ClassOne extends DisplayObject implements
IQualified {
public function ClassOne(){}
I will get a compilation error that states that I did not
implement required by the interface methods.
Now let’s implement only one method:
package{
public class ClassOne extends DisplayObject implements
IQualified {
private function method1():void{
return;
public function ClassOne(){}
I will get the error again because I implemented only one out
of two required methods.
Now let’s implement all of them:
package{
public class ClassOne extends DisplayObject implements
IQualified {
private function method1():void{
return;
private function method2():int{
return 4;
public function ClassOne(){}
Now everything works OK.
Now let’s screw with return datatypes. I attempt to
return String instead of void in method1 in ClassOne:
private function method1():String{
return “blah”;
I am getting an error again – Interface requires that
the method1 returns void.
Now let’s attempt to pass something into the method1:
private function method1(obj:MovieClip):void{
return;
Oops! An error again. Interface specified that the function
doesn’t accept any parameters.
Now rewrite the interface:
package{
public interface IQualified {
function method1 (obj:MovieClip):void;
function method2 ():int;
Now compiler stops complaining.
But, if we revert the class back to:
private function method1():void{
return;
compiler starts complaining again because we don’t pass
any parameters into the function.
The point is that interface is sort of a set of rules. In a
simple language, if it is stated:
public class ClassOne implements IQualified
it says: “I, class ClassOne, pledge to abide by all the
rules that IQualified has established and I will not function
correctly if I fail to do so in any way. (IMPORTANT) I can do more,
of course, but NOT LESS.”
Of course the class that implements an interface can have
more that number of methods the corresponding interface requires
– but never less.
MORE means that in addition to any number of functions it can
implement as many interfaces as it is desired.
For instance, I have three interfaces:
package{
public interface InterfaceOne {
function method1 ():void;
function method2 ():int;
package{
public interface InterfaceTwo {
function method3 ():void;
package{
public interface InterfaceThree{
function method4 ():void;
If our class promises to implement all three interface it
must have all four classes in it’s signature:
package{
public class ClassOne extends DisplayObject implements
InterfaceOne, InterfaceTwi, InterfaceThree{
private function method1():void{return;}
private function method2():int{return 4;}
private function method3():void{return;}
private function method4():void{return;}
public function ClassOne(){}
Hope it helps. -
Document from file - how better store information about document?
I have a text file that contains information about documents (content from groups than define the document - one row is one document). Every group content from fields (from 10 to 70 in every group). Document consist of 9 groups. In one documen can difference number of groups (> 1 group). E.g. one document can have 3 group1, 2 group6. In another document 2 group9, 1 group 6 and so on. I need to store document in DB and must edit document (by JFrame). To store document I use object MyDocument to store information about document.
3 solutions:
1. Store every group as list from hastables
public class MyDocument {
private ArrayList<Hashtable<String, String>> group1;
private ArrayList<Hashtable<String, String>> group2;
private ArrayList<Hashtable<String, String>> group3;
private ArrayList<Hashtable<String, String>> group4;
private ArrayList<Hashtable<String, String>> group5;
private ArrayList<Hashtable<String, String>> group6;
private ArrayList<Hashtable<String, String>> group7;
private ArrayList<Hashtable<String, String>> group8;
private ArrayList<Hashtable<String, String>> group9; 2. Store all groups as one list from hashtables
public class MyDocument2 {
private ArrayList<Hashtable<String, String>> allGroups;
} 3. Store groups as lists consist from individual objects (MyDocumentGroup1, MyDocumentGroup2 and so on.)
public class MyDocument3 {
private ArrayList<MyDocumentGroup1> group1;
private ArrayList<MyDocumentGroup2> group2;
private ArrayList<MyDocumentGroup3> group3;
private ArrayList<MyDocumentGroup4> group4;
private ArrayList<MyDocumentGroup5> group5;
private ArrayList<MyDocumentGroup6> group6;
private ArrayList<MyDocumentGroup7> group7;
private ArrayList<MyDocumentGroup8> group8;
private ArrayList<MyDocumentGroup9> group9;
public class MyDocumentGroup1 {
private ArrayList<Hashtable<String, String>> group1;
public class MyDocumentGroup9 {
private ArrayList<Hashtable<String, String>> group9;
}What solutions is better? Or maybe has another solution?Maybe better to store one document in ONE HashMap
public class M2Document {
private HashMap<String, String> data = null;in the next format:
-------------key ---------value----------
GroupID_FN | some value
where, GroupID is ID of group, FN - field number
example:
-------------key ---------value----------
Group1_1 | some value
Group1_2 | some value
Group2_1 | some value
Group2_2 | some value
Group3_1 | some value
Group3_2 | some value -
General information about JATO.
OK,
We are finally ready to get off of ND4.
I'm doing some research about our next direction.
The way I understand it is that iMT will transform my ND apps into
J2EE apps using the JATO architecture. Where can I find more
information about JATO? I can't seem to find much on the iPlanet
site, or in general. Is it on a level with Struts? Does it only work
with iPlanet? I've contacted my iPlanet/Sun/NetDynamics rep about
starting this process, so maybe I will get more information then. It
just seems odd not to find it generally discussed. If I go with JATO,
am I just locking my self into another proprietary api (ala
NetDynamics)? Any general tips NetDynamics veterans can offer?
John Hoskins
john.hoskins@t...
TDSJohn--
I'm doing some research about our next direction.
The way I understand it is that iMT will transform my ND apps into
J2EE apps using the JATO architecture. Where can I find more
information about JATO? I can't seem to find much on the iPlanet
site, or in general.Unfortunately, as much as we've been tirelessly promoting JATO for the last
year and a half, only now is significant public information finally going
to be made available. The link at the bottom of each forum email will be
live in a week or so, and will be the official public site for JATO. If
there isn't enough information there, we'll do what we can to get additional
information to you--just let us know your needs, or simply ask your
questions here. Many of you may not be aware that there is even a 10+
chapter JATO training class... We're trying very hard to make this sort of
material available to our external users.
Is it on a level with Struts?Since we're getting lots of these sorts of JATO questions lately, I've
posted the JATO overview white paper to the forum files area. I recommend
everyone read this 17 pager; it discusses what JATO is, what it aims to be,
and how it differs from other J2EE application frameworks. You can access
the white paper here:
http://groups.yahoo.com/group/iPlanet-JATO/files/jato-overview.html
Does it only work with iPlanet?NO! It is an application framework based on standard J2EE. It's been run
successfully in just about every container on the planet. Please see the
JATO presentations in the forum file area for more information:
http://groups.yahoo.com/group/iPlanet-JATO/files/JATO%20Presentations/
I've contacted my iPlanet/Sun/NetDynamics rep about
starting this process, so maybe I will get more information then. ItWe're working hard to get the word out to everyone in iPlanet/Sun.
Depending on who you talk to, you'll get someone very familiar with JATO, or
someone who's never heard of it. The reason for this is that JATO is not
being released as an official product, but is rather as a free developer
technology. JATO has now been chosen as part of the Sun ONE architecture,
so everyone both internally and externally will be hearing a lot more about
it in the near future. If your rep comes back to you and has no info on
JATO, please ask him or her to contact Charles Beckham or me for info.
Regardless, we're the architects and engineers hanging out here, so this is
the horse's mouth. <grin> All the JATO materials have been developed by us
personally (which is why they're somewhat slow in coming), so just ask us if
you have questions, here or in off-forum email, and we'll be glad to help.
just seems odd not to find it generally discussed. If I go with JATO,
am I just locking my self into another proprietary api (ala
NetDynamics)? Any general tips NetDynamics veterans can offer?Please read the white paper for information that I think will squarely
address this question. However, I will make these observations at least:
We've done everything possible to make JATO complementary to J2EE, and we
don't hide the underlying J2EE API from you. Instead, JATO applies
well-known, state-of-the-art, application-level design patterns to baseline
J2EE to help you build real-world J2EE enterprise apps. My experience is
that enterprise architects and developers find this far more of a benefit
than a hinderance. Furthermore, you get the source for JATO. (I've lobbied
long and hard to make JATO open source, but you can imagine how that fares
inside a huge company like iPlanet...)
Anyway, I could go on and on, but please read the white paper and see the
presentations, then let us know if you have additional questions. We'll be
glad to answer them.
Todd
Todd Fast
Senior Engineer
Sun/Netscape Alliance
todd.fast@s...
Maybe you are looking for
-
What are the best coding technics which will avoid performance problems
Hi Experts What are the best coding technics which are avoiding memory problems and performance problems Some times one of few reports are taking too much time to executing while handling large data. 1.What are the best way to declare a internal tabl
-
YoiTube isn't recognizing Flash in Safari gor Windows?
Hi, I recently downloaded Safari for Windows, and upon visiting Youtube, YouTube gave me a message saying my browser wasn't supported. I ignored the message and whenever I try to play a YouTube video with either Flash or QuickTime, it doesn't work. I
-
How to create planned order from the sales order for a processing item
In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order. I tried the Planning strategy group 81 in the material master but it didnt work. Could you please let me know h
-
My Firefox window is either 1" or full screen, where is mid size
instead of having window sizes of full, mid and minimize, I now have full, ~1" which is too small to use and minimize. how do I return to a mid size window that is usable?
-
We are a Macintosh shop and we are wondering if there is a way to create some sort of answer file to automate OS 10.4.x installations to a certain point. We have a bunch of student workers and this would help to ease training with staff turnover and