Creating a new work item instance in a process using PAPI
I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI.
I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: http://www.4shared.com/file/126507332/e814a3a8/CallingPapi.html. The Oracle BPM project I used for this step-by-step document is also in this zip file. If you're curious, this also describes how to download, install and start JDeveloper 11.
This is not formal Oracle documentation, but I know from teaching our Oracle BPM Bootcamp class that getting PAPI to work is sometimes a challenge and thought this might help. I tried to write it with the "Java Newbie" in mind so do not panic if you aren't an expert in Java (I'm sure not ?:| ).
This is a simple example that uses most of the logic found in the PAPI documentation on http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Head_PAPI.html in the "Writing Your First Java PAPI Program" section of this document.
The document provides a step-by-step description on how how to use PAPI to:
<li> interface to processes running on an Oracle BPM Enterprise Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> interface to processes running on an Oracle BPM Studio Engine
<li> list processes currently running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> list the work item instances running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
<li> create a new work item instance in a process and pass in input argument variables to the new instance as it is created.
Hope you find this useful,
Dan
Hi
i have gone through your example. It gives good information how to connect to BPM engine through java papi client. I have followed exactly the same steps given in the PDF document. But it throws the exception on both java client side and BPM Suite.
Steps followed :
1. Import sampleproject.exp into Oracle BPM studio and start the BPM engine.
2. Imported the fuegopapi-client.jar and Write the JAVA PIPA client to connect Oracle BPM Engine.
complete example code:_
import fuego.papi.CommunicationException;
import fuego.papi.InstanceInfo;
import fuego.papi.ProcessService;
import fuego.papi.ProcessServiceSession;
import fuego.papi.OperationException;
import java.util.Properties;
public class ProcessAPIClient {
public static void main(String[] args) {
/////////////////// API Initialization ///////////////////
Properties configuration = new Properties();
configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
configuration.setProperty(ProcessService.PROJECT_PATH, "C:\\Oracle\\OracleBPMWorkspace\\SampleProject" );
configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
try {
ProcessService processService = ProcessService.create(configuration);
/////////////////// Establish a session ///////////////////
ProcessServiceSession session = processService.createSession("test", "test", null);
/////////////////// Operate with PAPI ///////////////////
for (String processId : session.processesGetIds()) {
System.out.println("\n Process: " + processId);
for (InstanceInfo instance : session.processGetInstances(processId)) {
System.out.println(" -> " + instance.getId());
/////////////////// Close the session ///////////////////
session.close();
/////////////////// Release API Resources ///////////////////
processService.close();
} catch (CommunicationException e) {
System.out.println("Could not connect to Directory Service");
e.printStackTrace();
} catch (OperationException e) {
System.out.println("Could not perform the requested operation");
e.printStackTrace();
It throws the following exception and output on java client._
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
Creating ProcessService with id 'SampleProject'.
Local folder /tmp\system\Schema33871921573571055\catalogs found.
Loading catalogs from local folder: /tmp\system\Schema33871921573571055\catalogs
0 jars found locally.
[CatalogMgrCache] =======================
Registering CatalogMgr [SampleProject] ...CatalogManagerCache 23240993:
Managers:
Counters:
[CatalogMgrCache] =======================
CatalogMgr [SampleProject] REGISTERED!CatalogManagerCache 23240993:
Managers:
{SampleProject=fuego.util.LocalCatalogManager@40b187}
Counters:
ProcessService 'SampleProject' created successfully.
Process: /SampleProcess#Default-1.0
Unreachable Engine Tolerance (seconds):
by default: 0
to be used: 0
This papi client will not cache exceptions which imply that an engine could not be reached.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageEOFException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at $Proxy24.<clinit>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at fuego.papi.impl.AbstractProcessControlHandler.newProxyInstance(AbstractProcessControlHandler.java:52)
at fuego.papi.impl.rmi.RMIProcessControlHandler.createProxy(RMIProcessControlHandler.java:47)
at fuego.papi.impl.rmi.RMIEngineAccessImpl.createProcessControl(RMIEngineAccessImpl.java:111)
at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1082)
at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2698)
at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1675)
at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2703)
at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2365)
at com.eds.comet.bpm.oracle.papi.client.ProcessAPIClient.main(ProcessAPIClient.java:30)
Caused by: java.lang.ClassNotFoundException: javax.jms.MessageEOFException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 16 more
It throws the following exception and output on Oracle BPM Suite._
Client 'Id=test, Name=test, In=1, Session=564242434' was not found in lists ', PARTICIPANTS' while disconnecting it.
Please help me to resolve this. I noticed it is able to connect BPM engine and retrieve process list. But while getting instances, it throws the exceptions on both Java Client and BPM engine side.
Thanks and Regards
Mahesh
Similar Messages
-
Create a new line item in sales order
Hi,
I have to create a new line item in a sales order. The scenario is that if we donot find the desired quantity from a plant. Then we have to go ahead and pick the remaining quantity from another plant and automatically create a new line item.The new plant is picked from a custom table so u need not worry about it.
According to me I will have to use the BAPI for it but one constraint is that while creating a sales order the order number assignment is not done until saved. So what can be done in the case if its a new document.
Kindly let me know if there is any appropriate user exit or if someone has worked on a similar requirement.
thanks
VarunHi,
Thanks for your response. I have tried to use these exits already but the problem dat comes here is dat when we try to use the BAPI we donot have any sales document created in the first instance(i.e. while creating an order) so the BAPI returns error and when i tried to populate the itabs in the program directly the new values just wont get processed.
I think like: in case its a new document and we face this scenario I can just terminate the document creation and create a new document using the BAPI with proper plant assignments.But i am doubtful about the stability of this process.
Kindly comment.
Thanks
Varun -
In SharePoint 2010 I created workflows that used the 'Create list Item' Action, which then set the Content Type ID (so I could create documents of various types in a document library).
We just switched to the SharePoint 2013 platform, and now the drop down for Content Type ID is blank in all of the workflows that are still using the SharePoint 2010 platform. Is there any way to create a list item with specific content
type? Even if I could just input a string into that field instead of using this blank drop-down. Please help!Hi Sarah,
According to your description, my understanding is that you cannot create a new list item with a specific content type using SharePoint 2010 Platform Workflow.
I tested the same scenario in my environment, and the Create List Item worked fine with the specific content type.
How did you create the content type?
Please check if the content type is added to the list/library the workflow associated with.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
One of the user is unable to remove obsolete Tags from new work items and search query
Hi I am new to TFS Administration, User has some obsolete Tags in TFS site which is removed on the Backlogs but user can see those tags when he is creating new work items and while querying the Work Items but he is not able to see any obsolete tags in Backlogs.
TFS version: TFS 2013 SP2
Steps followed:
we queried each tags, we see 0 work items associated with the tags
As per MSDN, we have to remove associated tags which automatically removes the Tags after 3 days
The user is facing the same from past week
Am i missing something? or will the list of Tags be available in new work items and querying WITs? Please help
Thanks in AdvanceHi BE,
I tested this scenario in my TFS 2013 Update 4 Server, and found that Tags will disappear from Tags dropdown list automatically after serverl days, if there’s no any work item associated that Tags.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How do I create a new Work Center for the transaction launcher and links
Hi
The requirement here is for me to find out if I can create a new Work Center that will contain up to 6 assignment blocks and each block having either links to websites and BW reports, or triggers to R/3 applications via the transaction launcher.
Can I do this purely through customising or do I need to create a new view using BSPs? If I can do it through customising please could I have a few pointers to what component I would need to use/copy?
Regards
DeclanHi Robert,
Thanks again for taking the time to reply.
Just so I understand, if I want to show a work center I need to link it to a component / view? I think this was the original query - do I need a developer to create the view that contains the 6 blocks with their links to reports, transactions and websites? I think when I talk about blocks I mean 1 viewset containing 6 views. There is no SAP standard view that would suit my requirements is there? Even if the work center had 8 views, I can always hide the two views in configuration.
After the developer has created the view, I then reference that component in the target Id in the define logical links section of my work center.
If my understanding is right, then it follows that it is not possible to create a user specific work center without some development.
Is this correct?
Cheers
Declan -
How can I create a new work center
I try to create a new work center.I found a transaction 'OP42' . But I can't set a personal number and name.where should I write them, or should I use any other transaction??
Thanks...Hi,
Pl go to <b>CR02 -Capacity-Goto menubar select Goto -Individual capacity -Enter personal name here</b>.
Hope this helps.
Regards,
Mani -
How to create a new line item automatically in CRMD_ORDER
Hi,
While creating a sales order in CRMD_ORDER, after user enters a line item say 'xxxx' and press 'Enter', we need to create a new line item say 'yyyy' dynamically. Any ways of how to achieve this functionality?
thanks in advance,
amar.sHi Amar
You can use structured products:
Step1:COMM_PR01
Open Product xxxx > Relationships > Tab Component > Select Relationship type = STRSET Set > Assing product yyyy
Step2: IMG > CRM > Transactions > Define Item Categories
Open you item category and in Structure scope field select option A Single-Level Explosion of structured products
Step3: IMG > CRM > Transactions > Define Item Category Determination
create new entry
Transaction type =
Item category group = Category group of xxxx product
main item cat = item cat of xxxx product
item cat = item cat of yyyy product
now when you enter product xxxx , product yyyy will be automatically added
Hope it helps
Rupesh -
How do i create a new line item (say 20) in reference to line item 10
Hi all,
I am trying to map a scenario where i want to create a new line item with reference to an existing line item. Where do i get this option in SD, and how could i go about it?
Thanks & Regards
Ravi> In ECC6 if u go to VA01 and enter the SP and SH,
> Press Propose Item Icon, then one window will pop-up
> asking for Sale Document Number, enter the Number and
> select- selection list, there u will get all the
> line item of the Sale Doc. Select and copy Material
Hi i am on SAP 4.7. How could be the same handled here? -
How to create a new menu item.. please help
hi every one..,
i bought a new 30GB ipod .., i would like to create a new menu item in the ipod and wanna generate all my content whichis in my database to this newly created menu item in my ipod....
any reply to this will be greatly appreciated..
thanks in adavance
Prem
AMD athlon 64. 2400+ Windows XP Pro 1.8GHZ, 512 MB RAMPrem,
First of all, Welcome to the Apple Discussion Forums!
If you get no response here you may want to post your question over in the iPod Discussion Forums for the quickest response.
Pick the forum of the iPod in question (Usage).
Just thought that might get you a better/quicker response than here.
good luck,
littleshoulders [:-) -
How to create a new variant and a job sheduled to use it for the exisisting programs
Hi
1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
standardized format. The list data is displayed as a table on the screen.
The ALV Grid Control offers a range of interactive standard list functions that users need
frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
export list (in different formats), and so on. These functions are implemented in the
proxy object class. You as the programmer have the possibility to turn off functions not
needed. In most cases the implementations of the standard functions provided by the
control are sufficient. However, if required, you can adjust these implementations to
meet application-specific needs.
You can add self-defined functions to the toolbar, if necessary.
The ALV Grid Control allows users to adjust the layout of lists to meet their individual
requirements (for example, they can swap columns, hide columns, set filters for the
data to be displayed, calculate totals, and so on). The settings (list customizing) made
by a specific user are called a display variant. Display variants can be saved on a userspecific
or on a global basis. If such display variants exist for a list, they can be offered
to the user for selection. If a display variant is set as the default variant, the associated
list is always displayed based on the settings of this variant.
2. REUSE_ALV_LIST_DISPLAY
REUSE_ALV_GRID_DISPLAY
REUSE_ALV_FIELDCATALOG_MERGE
REUSE_ALV_COMMENTARY_WRITE
3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
7.fieldcat-fieldname
fieldcat-ref_fieldname
fieldcat-tabname
fieldcat-seltext_m
5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
The report output can contain up to 90 columns in the display with the wide array of display options.
<b>The commonly used ALV functions used for this purpose are;</b>
1. REUSE_ALV_VARIANT_DEFAULT_GET
2. REUSE_ALV_VARIANT_F4
3. REUSE_ALV_VARIANT_EXISTENCE
4. REUSE_ALV_EVENTS_GET
5. REUSE_ALV_COMMENTARY_WRITE
6. REUSE_ALV_FIELDCATALOG_MERGE
7. REUSE_ALV_LIST_DISPLAY
8. REUSE_ALV_GRID_DISPLAY
9. REUSE_ALV_POPUP_TO_SELECT
Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
But either no.7 or No.8 is there in the Program.
<b>
How you call this function in your report?</b>
After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
Then use follwing function module.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'Prog.name'
I_STRUCTURE_NAME = 'I_ITAB'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_ITAB.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
ENDIF.
ENDFORM. " GET_FINAL_DATA
The object F_IT_ALV has a field, the activity ACTVT, which can
contain four permitted values: 01, 02, 03 and 70. Each of the
activities 01, 02 and 70 controls the availability of particular
functions (in the menu and the toolbar) of the ALV line item list:
a) 01: "Settings -> Display variant -> Save..."
b) 02: "Settings -> Display variant -> Current..." and
"Settings -> Display variant -> Current header rows "
c) 70: "Settings -> Display variant -> Administration..."
Activity 03 corresponds to the minimum authorization, which is the
most restricted one: The user can only select layouts which have
been configured already. In particular, all of the other functions
named above are inactive with activity 03.
Now if you want to permit a user to change the column selection and
the headers as well as to save the layout thus created, for example,
but if you do not want to permit the user to administrate the
layouts, you grant him or her the authorization for activities 01
and 02.
Check this link it will be mosty usefull for u
http://www.sap-img.com/fu017.htm
Reward all helpfull answers
Regards
Pavan -
recently when creating a new blank page, application freezes. have been using for years without a problem. Upgrade?
When something that used to work stops doing so, the most likely culprit is corrupt preferences. Go to HD > Users > (your account) > Library > Preferences, delete the com.apple.iwork.pages.plist file & then restart Pages. In Finder, hold down the Option key while clicking on the Go menu & your user Library will appear about halfway down the list. Or you can choose Go to Folder from the Go menu in Finder & paste this line in the box:
~/Library/Preferences -
my old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more importantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account
You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
Have you seen this.
http://support.apple.com/kb/HT5796
iCloud
iOS 6 and later: Go to Settings > iCloud.
If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
If you're still signed in with your previous Apple ID:
Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device. -
Dear SharePoint Experts,
Please help.
Why does my simple formula work in Excel but not-work in SharePoint?
Why does this formula...
=IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE)
...work in Excel but fail when I try to use it in SharePoint?
The intent of this formula is the following...
If the field "Request Type" has the value "Review" and the field "Request Data" is blank then show FALSE, otherwise show TRUE.
SharePoint saves the formula, but when a list item is saved where the formula is implemented, (under List Settings, List Validation), SharePoint does not, say anything other than that the formula failed.
Note that the "list data validation failed" error only happens when I am creating a new item-- the formula above works just fine when one is trying to Save on the edit form.
Can you help?
Thanks.
-- Mark KamoskiDear Jason,
I appreciate your efforts.
However, it seems to me that this statement of yours is not correct...
"If it meet the validation formula, then you can new or edit the item, otherwise, it will throw the 'list data validation failed' error, it is by design".
I believe this is NOT the answer for the following reasons.
When I create a new item and click Save, the validation error is "list data validation failed".
When I edit an existing item and click Save, the validation error is "my custom error message" and this is, I believe, the way it needs to work each time.
I think, at the core, the error my formula does not handle some condition of null or blank or other default value.
I tried a forumla that casts the date back to a string, and then checked the string for a default value, but that did not work.
I tried looking up the Correlation ID in the ULS when "list data validation failed" occurs, but that gave no useful information because, even though logging was set to Verbose, the stack trace in the error log was truncated and did not given any
good details.
However, it seems to me that SharePoint 2013 is not well-suited for complex validation rules, because...
SharePoint 2013 list-level validation (NOT column-level validation) allows only 1 input for all the multi-field validation formulas in a given list-- so, if I had more than 1 multi-field validation rule to implement on a given list, it would need to be packed
into that single-line-of-code forumla style, like Excel does. That is not practice to write, debug, or maintain.
SharePoint 2013 list-level validation only allows 1 block of text for all such multi-field validation rules. So that will not work because I would have something like "Validation failed for one or more of the following reasons-- withdrawal cannot exceed
available balance, date-of-birth cannot be after date-of-death,... etc". That will not work for me.
The real and awesome solution would simply be enhancing SP 2013 so that column-level validation forumlas are able to reference other columns.
But, for now, my workaround solution is to use JavaScript and jQuery, hook the onclick handler on the Save button, and that works good. The only problem, is that the jQuery validation rules run before any of the column-level rules created with OOTB
SP 2013. So, in some cases, there is an extra click for the enduser.
Thanks,
Mark Kamoski
-- Mark Kamoski -
Create a new header+item after sync the item some informations are deleted
Hi All,
I have a DO with a backend adapter and 3 bapi wrapper (GetList, GetDetail, Create).
When I create a new instance (header+item) on client side the data are correct in the database. After a sync the instance is also on the client and the Backend but he lost some informations in the item.
For example i create e_top object (header) and t_vehicle object (item) the i added the item to the header an wirte it in the database. In the datebase both tables for header and item are correct filled.
Application Code:----
public void SaveVehicle( java.lang.String Manufacturer, int Driver, java.lang.String Licence_Number, java.lang.String Type ) {
VEHICLE_E_TOP e_top = model.createVEHICLE_E_TOP();
e_top.setLICENCE_NUMBER(Licence_Number);
wdContext.nodeVEHICLE_E_TOP().bind(Collections.singleton(e_top));
wdContext.nodeVEHICLE_E_TOP().setLeadSelection(0);
model.addToVEHICLE_E_TOPs(e_top);
VEHICLE_T_VEHICLES t_vehicle = e_top.createNewT_VEHICLESs();
t_vehicle.setDRIVER_ID(Driver);
t_vehicle.setLICENCE_NUMBER(e_top.getLICENCE_NUMBER());
t_vehicle.setMANUFACTURER(Manufacturer);
t_vehicle.setTYPE(Type);
wdContext.nodeVEHICLE_E_TOP().currentVEHICLE_E_TOPElement().model();
e_top.addToT_VEHICLESs(t_vehicle);
wdContext.nodeVEHICLE_T_VEHICLES().bind(Collections.singleton(t_vehicle));
wdContext.nodeVEHICLE_T_VEHICLES().setLeadSelection(0);
model.commit();
Now when I snyc with the middleware the object is still on the client (1 row in the e_top table and 1 row in the item table) but in the row of the item table all data until the header key(Licence_Number) is deleted. In the Backend there is a new objekt with only the header imformations.
Best Regards,
DirkHi,
there was another post today n a similar issue. I still do not think it is a standard issue - so lets check first if your implementation is correct.
You should have a look on the CREATE BADI in the backend and on the mapping in the DOE. I expect the CREATE handler does not get all informations form the client, cause you missed to do the propper mapping in the DOE on the middleware. Check this first. If you see the data on the client, the client side should be fine. Check the DOE and its mapping and the BADI implementation on the backend.
Hope it helps!
Regards,
Oliver -
Creating a new web server instance using script
Hi
We have to create 10 instances of sun one 6.1 web server again and again. Creating them from GUI and deleting them after testing is going to be a time consuming process. Is there a way to copy an existing instance with the help of some command line tool or shell script (If we know what enteries should be there in each configuration file). Any help will be appreciated.
Thanks
Anoop6.1 unfortunately does not provide a way to create instances through command line tool. With 7.0 (soon to be released as Beta in the coming weeks) will have a full fledged command line tool for all server administration tasks
meanwhile, as a temporary work around one could do the following within a shell or perl script.
[ this approach is totally not supported by Sun. You are on your own ]
1. cd INSTALL_ROOT
2. copy https-HOSTNAME to https-test (/bin/cp -Rf https-HOSTNAME https-TEST) - assuming TEST is the new instance name that you want to create.
3. use a script to edit the following files and replace 'https-HOSTNAME' to https-TEST in all occurrences.
list of files to change:
start , stop , reconfig , restart , rotate
config/magnus.conf
config/server.xml
4. finally, you can use 'HttpServerAdmin' to change the listener port, security settings etc
./bin/https/bin/HttpServerAdmin -h
http://docs.sun.com/source/819-0130/agcmdln.html
for eg ( i would do something like this )
(to create instance https-TEST from default server instance, assuming you do not have special ACL file configured in the default instance, I would do something like )
use a perl script to copy https-HOSTNAME to https-TEST
(/bin/cp -Rf https-HOSTNAME https-TEST)
/bin/cp httpacl/generated.http-HOSTNAME.acl httpacl/generated.http-TEST.acl
cd https-TEST
replace https-HOSTNAME to https-TEST in following files (start, stop, restart, reconfig, rotate, config/magnus.conf, config/server.xml)
cd ..
now delete the listener socket id
./bin/https-TEST/bin/HttpServerAdmin delete -l -id ls1 -sinst https-TEST -d INSTALL_ROOT (where you server is installed)
followed by create a new listener socket id
./bin/https-TEST/bin/HttpServerAdmin create -l -id ls1 -ip ANY -port NEW_PORT -sname HOSTNAME -defaultvs https-TEST -sinst https-TEST -d INSTALL_ROOT
[ similarly, you can perform other server admin tasks using this command' ]
Maybe you are looking for
-
Can no longer use mic after ios 4
Hello. Yesterday I tried using the earphones with mic that came with my iPod for the first time since upgrading to ios 4. The earphones still work, but the mic doesn't, if I hold down the home button it doesn't bring up voice control anymore, and if
-
User exit or BADI to internal order (CO)
Hi, I need a user exit or BADI to in order to shoot workflow, this user exit or BADI it must have I number of the order to be created to pass it to it to workflow Regards Dayana
-
Reader plug-in, save copy of password protected pdf without password
Hello, We currently have an Acrobat Reader plugin (using the 8.1 SDK) and are having trouble with password protected PDFs. The sole purpose of our plug-in is to pass a copy of the currently open PDF to a different folder on the user's computer. The p
-
Hi. Its exactly what it means I can now convert but it's not letting me do anything with it and all the words have gone once CONVERTED & Saved can this be sorted or can I just get my MONEY back and I will try other avenues to get what I want. Kind R
-
How do I find original source files for an XML-generated online help system created in FM12? What are POM files? I must take over from previous tech writer to fix the files and regenerate them and I haven't a clue how to do it in FM 12. I've created