Storing XMLType object as a Workflow Attribute - is it possible?
Dear Experts,
I have an XML document stored as a PL/SQL 'XMLType' object and I wish to store it in a Workflow Attribute. Is this possible and if so, under what 'Type' option shall I store it as?
Many thanks,
Mark
Hi,
You can store the payload as a CLOB inside a Workflow Event attribute type (WF_EVENT_T).
If the XML is guaranteed to be short, you could store it in a text attribute of up to 4000 characters, but I'd be inclined to store it in the event.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com
Similar Messages
-
Storing Multiple Values in Workflow Attribute
Hi,
I got the requirement where i want to store multiple values into Workflow Attribute. Is there any way to accomplish this.
Thanks
JHi,
Do you mean multiple different values in the same attribute at the same time?
If not, then yes - this is standard functionality. Just use the appropriate API to set the new value whenever it changes.
If yes, then possibly, but that would be exceptionally bad design. If you want to store different concurrent values in the same attribute, then the only type this would work for would be a text attribute, and you would need to include a delimiter between the values so that they can be stored. Then, whenever you need one of the values, you need to split the attribute according to the position of the delimiters.
I have no idea when you would have a requirement to store multiple values in the same attribute at the same time - as I said, it is exceptionally bad design, so I'm going to hope that you just mean to hold different values at different times.
If you meant you want to store multiple values into multiple attributes at the same time, then there are also APIs that can be used to accomplish that. I would not recommend using them, as it makes it harder in the long term to maintain and support the application - having multiple calls is no slower, but makes the code easier to read and understand.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
How to print the image data stored in object of 'java.io.File' Class in jsp
I have created a file object for the image file in the system temporary directory.Now I want to display it in my page. please tell,How to print the image data stored in object(in my program it is imgr) of 'java.io.File' Class in jsp
Create a servlet which gets an InputStream of the file and writes it to the OutputStream of the response and call this servlet in `src` attribute. That's basically all.
Here's an example which covers the most of the minimum needs: [http://balusc.blogspot.com/2007/04/imageservlet.html]. -
Is anyone using workflow attributes to store all their data relevant to a workflow process, similar to the product demos?
Ideally, I'd like to store all my application data in an external schema and just have workflow keep track of the item_key. The problem with this approach is that you can't reference data in a notification header, for example, unless it's stored as an attribute. I've read where overusing item attributes is bad practice, but I don't like the idea of having some data stored as item attributes, some stored externally, or a combination of both. Any suggestions?
Thanks in advance.You generally should not use Workflow to store application data. Your application should be doing it. Workflow should store pointers to your application which it can use for the process.
When sending notifications you can construct the subject and body by setting a minimal set of attributes. In this way you dont need to store all application data.
Reducing the number of attributes is defenitely recommended. Also creating attributes on the run only when required is also another option which you can use. -
Getting selected item from combobox itemrenderer and storing in object
Hi Guys,
Can anyone help me in this regard. Its very urgent.
I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox and corressponding values of all other columns of the rows into an Object ?.
Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
Kindly help me in this regard.
Thanks,
Anand.Hi!
Are you using a collection of VO or DTO as the dataprovider of the combobox component?
If so, have you created some attribute there to control the user's selection in the combobox?
For instance:
private var selected:Boolean = false;
If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
For instance:
private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
var newCollection:ArrayCollection = new ArrayCollection();
for each (var item:Object in datagridDataProvider)
if (item.selected)
newCollection.addItem(item)
return newCollection;
Afterwards, you may serialize this new collection with your back-end.
Hope it helps you!
Cheers,
@Pablo_Souza -
Getting this error from DirSync
Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName
[email protected];]. Correct or remove the duplicate values in your local directory. Please refer to
http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.
Quick eyeball and couldn't see the cause in the user account so used the script here:
http://gallery.technet.microsoft.com/office/Fix-Duplicate-User-d92215ef
And got these outputs:
PS C:\Windows\System32\WindowsPowerShell\v1.0> Export-OSCADUserPrincipalName -UserPrincipalName "[email protected]" -Path .\outputs.csv
WARNING: Cannot find objects with specified duplicate user principal name
[email protected]
Found 0 user(s) with duplicate user principal name.
Where to from here?
Richard PHi,
Did you talk about the Microsoft Azure Active Directory Sync tool ?
If yes, this issue occurs if one or more of the following conditions are true:
An object in the on-premises Active Directory has an SMTP address that's the same as the SMTP address of the object that's reporting the problem.
An object in the on-premises Active Directory has a mail attribute that's identical to the object that's reporting the problem.
An object already exists in your organizational account and has the same SMTP address or mail attribute as the object in the on-premises Active Directory
More detail information, please refer to:
http://support.microsoft.com/kb/2520976/en-us
[Troubleshooting] Unable to update this object because the following attributes associated with this object
http://blogs.technet.com/b/aadsyncsupport/archive/2014/05/20/troubleshooting-unable-to-update-this-object-because-the-following-attributes-associated-with-this-object.aspx
Regards.
Vivian Wang -
Regenerate the Object Reference in workflow
Hi All
Is it possible to regenerate the object reference in workflow BOR.
Please clarify below my query.
I am using custom workflow at initial stage i am sending dialog work item one user to another user, Once user opens his work item i want to change the object reference.
Is these any function module available please let me know.
Thanks & Regards
K.Gunasekar.Did it via the Call transaction and BDC in the object method code and working perfectly fine.
Regards,
Archana -
Overwrite Object Instance or all Attributes of it
Hello,
i have an question regarding ABAP OO,
i like to do following:
1) i like to give the reference me into a attribute of an local object.
2) edit attributes of this object
3) overwrite attributes of me with changed on of the atrribute of the local attribute
Step 1 and 2 is no problem,
but when i tried it like this.
me = lo_test->test.
i get the message that "me" is not overwriteable,
sure i can make it by every attribute of my class:
me->test1 = lo_test->test->test1.
me->test2 = lo_test->test->test2.
but i want a dynamic why to overwrite all attributes.
Thank you for any idea!
Regards
MarcusHi Marcus!
'me' (or 'lo_test') are pointer to an object. In case of attributes handling looks similar to a structure with their fields, but you discover the main difference: the structure name is just the head for all components - but 'me' is not a pointer to a (structured) field string.
You have to handle the attribute level (or make your assignments in a method). Maybe you can get a more dynamic access by using one structure with all values as single attribute.
Regards,
Christian -
Error when create XMLType object with JDBC connection
Hello, I try to get an XMLType object with JDBC, but it doesn't work. Can somebody help me?
My code is :
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@"+"a02w03:1521:PROJET", "scott", "tiger");
OraclePreparedStatement stmt = (OraclePreparedStatement) conn.prepareStatement("select xmldoc from cv_col");
ResultSet rset = stmt.executeQuery();
OracleResultSet orset = (OracleResultSet) rset;
while(orset.next())
OPAQUE o = orset.getOPAQUE(1);
System.out.println(o.getSQLTypeName());
XMLType poxml = XMLType.createXML(o);
My database table:
CREATE TABLE cv_col (
XMLDoc xmltype
Execution: The SQL type name "SYS.XMLTYPE" is write and then I obtain the error:
Exception in thread main
java.lang.NoSuchMethodError: java.lang.String oracle.jdbc.internal.OracleConnection.getProtocolType()
at oracle.xdb.XMLType.initConn(XMLType.java:2072)
at oracle.xdb.XMLType.<init>(XMLType.java:903)
at oracle.xdb.XMLType.createXML(XMLType.java:493)
at Prog.main(Prog.java:26)
Process exited with exit code 1.
Thank you, very much!What platform are you using for the database, what are you running your code on.
Which database version are you working with.. What is your class path. What version of JDBC and OCI are in the client environment, eg what are CLASSPATH and PATH / LD_LIBRARY_PATH settings. Have you tested your code using a simple IDE like Oracle's JDeveloper or run it from directly from the command line. -
Hai frnds,
I am a newbie to oracle workflow.May I know how to create oracle Workflow Attribute SetCan you please enhance the question? What is it you a trying to do? In Workflow you can create a list of attributes by using user type wf_parameter_list_t and then adding attributes to it like this
declare
myList WF_PARAMETER_LIST_T;
begin
WF_EVENT.AddParameterToList('PARAMETER_NAME', 'Parameter Value', myList);
end;
There are several APIs that use this user type.
Regards,
Alejandro -
Getting invalid packages when installing support for stored java objects
I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
If you need more information please let me know and I will try to respond promptly.
Thanks
Chad LeathThe PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.
-
What transform engine does the 'transform' method on an xmltype object use?
Does anybody know what transform engine is used when I call the 'transform' method on an xmltype object? I would like to use extension functions within my stylesheets but do not know what functions are available or the syntax for using them. Is there any documentation on this processor?
I am using oracle 9.2.0.7.
ThanksThanks for your responses. I guess being written in C makes it faster than the java one (?). I understand I won't be able to add my own extension functions, but does anyone know if there are any built-in ones, for example a node-set function?
-
Account assignment objects are incorrect. No substitution is possible
Account assignment objects are incorrect. No substitution is possible.
Message no. 3G209
Diagnosis
The account assignment object check showed that, from the point of view of CO, the specified account assignment is not valid, and cannot be replaced by the employee's master cost center or a substitute cost center. This item cannot be posted.delete the previous results and run the live pay roll run and accounting run
-
Workflow : attributes and methods in BOR
Hi to all,
I need to create a custom attribute in custom BOR object. I want to put some value in custom attribute by using select statement . where do i write the code for that attribute in BOR. In standard methods i have seen that ex: gw_purchase = object-key-number wt is that object-key- number. wt is the value does this holds
so any one please explain me with details.Hi,
methods in BOR are piece of codes that you execute in runtime by calling them in workflow. So when you check the box object method with dialog, such methods need to processed by user i.e; workitem agents. If you don't check this checkbox, the piece of code (method) will you be executed in the background without sending the workitem to user.
Let me know if you still have doubts.
Regards,
Raj -
Central contract Workflow attributes
Hello,
As per my understanding we can activate the workflow on any contract attributes/ fields(for central contract) like prices, product category etc.
We can activate u201C1-stepu2019 standard bc set u201C/SAPSRM/C_CT_600_001_SP04u201D and can determined workflow agent based on any attributes like u201CProduct categoriesu201D ,price etc
Or we can use BADI Implementation u201CBADI /SAPSRM/BD_WF_RESP_RESOLVERu201D for Agent determined based on attribute store in customized table
Please correct me if my understanding is wrong
However we need your valuable inputs on below
1) List of central contract ( CCTR ) attributes/fields on which we can activate the workflow.
2) List of central contract ( CCTR ) attributes/fields on which we can activate the workflow without any badi implementation ( without any coding ). As a part of standard configuration.
Best Regards
EPR_SRM_MDMHI,
I suppose you plan to use process controlled workflow.
If yes then you can check the tcode BRF and try to create a expression of type formula interpreter.
In the this expression navigate to formula editor and here you can find all the attritutes you can trigger for any business object.
For agent dertermination SAP has already delivered many agent determination method.. If a process level and click on the F4 feature available for field Resolver Name to find all the predelivered methods.
You can check the service market place http://service.sap.com for Workflow Guide SAP SRM 7.0
Path:
service markerplace -> Release & Upgrade info -> Installation & Upgrade Guides-> select SRM 7.0
Regards
Sam
Maybe you are looking for
-
Unable to install OS x mountain lion, startup disc missing.
Out of nowhere my internet crashes, then right after my laptop crashes and loads really slow. I tried to erase and restore but error appears every time and when I try to re install os x mountain lion, no disc appears for selection to install the hard
-
Syncronize Camera RAW not working when Auto is used
I have a problem with settings not being updated in Camera RAW when using the 'Auto' function. I have to equalize exposure on a large number of RAW files (often 500+). The Auto function would be great, if it would only apply to the Exposure and not t
-
Problem viewing secure PDF documents in Apple Preview
I have recently written an ebook that I would like to sell online. The original document was created using Pages and saved as a standard PDF. So far so good. As a way of trying to protect the book, I would like to have it password protected, which of
-
Trying to add photos, when adding second album, first one lost
when trying to add a second photo album, the first one seems to be deleted. I do use a new album title. What am I doing wrong? HELP
-
I have 17inch imac intel 2006 can i use G5 screen number A1058 mine is A1173??