Creating UserMembersRule with conditions on the value of resource attribute
Hi all.
I am trying to create a UserMembersRule to be used for provisioning an Organization. This rule should select users with a given value for an attribute mapped in a distant Resource.
For instance, it would select all users with "typeTest = test1" in the "Simu1" Resource. Most examples I have seen by now do this for the Waveset resource (querying attributes which are in the IDM Schema, not in distant Resources)
Form the results I have had, I suppose the first syntax (in which the Rule returns a list of AttributeCondition) doesn't work in this case.
I will still give you several syntax I tried to do this :
PLEASE NOTE that I've added "<" characters before each <<s> and <</s> tag, to prevent these from being interpreted by the Forum engine...
Syntax 1 :
<Rule authType='UserMembersRule' id='#ID#Rule:CustomTestRule1' name='Custom Test Rule 1' primaryObjectClass='Rule'>
<block trace='true' name='CustomTestRule1'>
<list>
<new class='com.waveset.object.AttributeCondition'>
*<<s>accounts[Simu1].typeTest<</s>*
<<s>equals<</s>
<<s>type1<</s>
</new>
</list>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule>
Syntax 2 :
<Rule authType='UserMembersRule' id='#ID#Rule:CustomTestRule1' name='Custom Test Rule 1' primaryObjectClass='Rule'>
<block trace='true' name='CustomTestRule1'>
<list>
<new class='com.waveset.object.AttributeCondition'>
*<<s>typeTest<</s>*<!--Note that typeTest is mapped in Simu1's configuration-->
<<s>equals<</s>
<<s>type1<</s>
<</new>
</list>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule>
Syntax 3 :
<Rule authType='UserMembersRule' id='#ID#Rule:CustomTestRule1' name='Custom Test Rule 1' primaryObjectClass='Rule'>
<block trace='true' name='CustomTestRule1'>
<list>
<new class='com.waveset.object.AttributeCondition'>
*<<s>waveset.typeTest<</s>*
<<s>equals<</s>
<<s>type1<</s>
</new>
</list>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule>
Syntax 4 :
<Rule authType='UserMembersRule' id='#ID#Rule:CustomTestRule1' name='Custom Test Rule 1' primaryObjectClass='Rule'>
<block trace='true' name='CustomTestRule1'>
<list>
<new class='com.waveset.object.AttributeCondition'>
*<<s>Simu1.typeTest<</s>*
<<s>equals<</s>
<<s>type1<</s>
</new>
</list>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule>
Then, since it didn't work, I tried the second syntax, in which the Rule returns a list of accountIds (in the form of "accountId:Resource") : as the examples on the web and in Waveset's documentation suggested, I queried the Resource with "com.waveset.ui.FormUtil.getResourceObjects".
Syntax 5 :
<Rule authType='UserMembersRule' id='#ID#Rule:CustomTestRule2' name='Custom Test Rule 2' primaryObjectClass='Rule'>
<defvar name='Members'>
<block trace='true' name='CustomTestRule2'>
<defvar name='MembersNames'>
<list/>
</defvar>
<dolist name='person'>
<invoke class='com.waveset.ui.FormUtil' name='getResourceObjects'>
<ref>context</ref>
<<s>User<</s>
<<s>Simu1<</s>
<map>
<<s>searchFilter<</s>
<<s>
(typeTest=type1)
<</s>
</map>
</invoke>
<append name='MembersNames'>
<concat>
<ref>person.waveset.accountId</ref>
<<s>:Lighthouse<</s>
</concat>
</append>
</dolist>
<ref>MembersNames</ref>
</block>
</defvar>
<ref>Members</ref>
</Rule>
This doesn't work, the "getResourceObjects" method returns null...
Then I tried replacing the "searchFilter" option with a "searchAttrsToGet = typeTest" option, but this throws the following exception :
com.waveset.util.WavesetException: Can't call method getResourceObjects on class com.waveset.ui.FormUtil
==> com.waveset.util.WavesetException: Unsupported option 'searchAttrsToGet'.
However the "searchAttrsToGet" option is listed in the Javadoc of Sun IDM !
I can't grasp why this doesn't work... Has any of you tried to do something similar, to give me an example ?
Thanks,
Alexis
Edited by: user8989858 on Oct 4, 2010 3:56 AM
This doesn't work, the "getResourceObjects" method returns null...The method responsible for listing objects in SimulatedResourceAdapter.java looks like this, sorry:
public ArrayList listObjects(String type, Map options) {
// ArrayList result = null;
// return new ArrayList(_objects.keySet());
return null;
}
Similar Messages
-
Replacement from the Value of an Attribute*
Replacement from the Value of an Attribute
With formula variables you can set the processing type Replacement from the Value of an Attribute and create a reference to the reference characteristic for the variable. The attribute Reference to Characteristic (Constant 1) is a dummy attribute that is available with each characteristic. It serves to create a reference to the characteristic, by which it does not need to be aggregated. By choosing this attribute, you can influence the aggregation behavior of calculated key figures in a targeted way and can improve performance during calculation.
1)what does this do in the query?
2)what is the value of the variable created ?(like 1,2 etc {i.e.} it changes or is a constant value like 1)?
E.g. i have created a formula variable zvar , (replacement path type) ref. char is wbselement, then what will be the value of the zvar if its used in a formula
eg. Formula 1 = kef1 kef2zvar.
what will be the value(s) of the variables in the these cases
1. project = 1000,1000.30.
2.project = 2000,2000.30.01
3.proect = 3000,3000.30.01,3000.30.02.
3.) as per the def. its a number which refer to a wbs, then in the FORMULA , will it consider the zvar as a VALUE or what would happen?
Edited by: jumboash on Oct 23, 2009 7:25 PMHi,
ZVAR is not considered as value in the calculation. It is used only to calculate the formula correctly without aggregation of the operands.
For example there are two materials m1 and m2 . total amount has to be calculated for these materials whose quantitys are 10 and 20 and whose prices are 200 and 300 respectively.
Case1:- if ZVAR is not used then the calculation of the fromula will be as follows
qty Price amount
10 * 200 = 2000
20 * 300 = 6000
30 * 500 = 15000 -> The total amount shows is 15000 which is not correct
Case 2: - if ZVAR is used in the calculation of the formula
qty Price amount
10 * 200 = 2000
20 * 300 = 6000
8000 -> The total amount shows is 8000 which is correct
so using the ZVAR in the formula shows the correct result without considering the aggregation . This is useful in the case if the material is not part of rows. -
BOL: How to read the value of an attribut
Hiii experts,
I'm new in ABAP programming.
My intention is to read the value of a context attribut.
This attribut ist not in form of a struct attribut. To read an struct attribut, I know to get the value, for example:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
But my problem is, that I have an attribut, which you can not find in the BOL browser, because it is not in form of a struct.
Can anybody help me, how to read the value of this kind of attributs.
Thank you very much in advance fpr your help,
JohnHii Clemens,
first of all, my concern deals with WebUI.
I expect to read the value of an attribut. I know how to read the value of an attribut, which can be found with the same description in the bol browser, as you know you can read it with:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
Now, I have an attribut of an context node which has a different name as in bol browser. If I want to read the value with the code above I get an error message. Thatswhy I referenced a collection of the context node to read this attribut.
Can anybody say me how the value of the attribut, can I use the methode get_property ?
greetings,
J -
Create table with references pointing to values in a different schema
Experts,
Is it possible to create table in one schema with references pointing to column values in a different schema?
Say, I have 2 schemas A and B
A has employee table and and B has dept table, I want to run the below alter statement, will this work?
ALTER TABLE A.EMP ADD (
FOREIGN KEY (DEPT_ID)
REFERENCES B.DEPT (DEPT_ID));
I know there is no sense in doing this, still would like to know for making some temporary workaround.
Regards,
Sarvan
Edited by: sarvan on Oct 21, 2011 12:30 AMYes this is possible with right privilege:
SQL> grant connect, resource to a identified by a;
Grant succeeded.
SQL> grant connect, resource to b identified by b;
Grant succeeded.
SQL> connect b/b
Connected.
SQL> create table p (x int primary key);
Table created.
SQL> grant references on p to a;
Grant succeeded.
SQL> connect a/a
Connected.
SQL> create table c (y int);
Table created.
SQL> alter table c add foreign key (y) references b.p(x);
Table altered. -
BPC Logic with Condition on Record value
Hi all,
how can I apply a logic filtering by record value?
That is, with SELECT or WHEN/IS I can say "apply this logic only to those records where members of a certain dimension have a property with value X", right? What I would like to say is "apply this logic only to those records where members of a certain dimension have another record with value X".
Is that possible?
Thank you very much,
RafaelHi Rafael,
You can test on the value of another account before applying logic, below some example code how to achieve this. Don't forget to add this 'test' account to your memberset.
*when account.PROPNAME
*is <>""
*when get(account=TESTACCOUNT)
*is > 100
*rec(account=account.propname)
*endwhen
*endwhen
*commit
Hope this helps,
Alwin -
Help with MapEntry - Setting the value.
Hey I have an LDAP DN string in a variable called searchDN.
<defvar name='searchDN'>
<concat>
<c>ou=active,ou=</c>
<ref>cmbApplicationSelector</ref>
<c>,ou=Groups,dc=craig,dc=uk</c>
</concat>
</defvar>Note: I have put 'c' instead of 's' in the above example to avoid strike through.
I want to use this variable as the value in the <MapEntry> tag below instead of hardcoding it.
Hard Coded Example:
<Map>
<MapEntry key='container' value='ou=active,ou=Rarms,ou=Groups,dc=craig,dc=uk'/>
</Map>What I want to achieve something like:
<Map>
<MapEntry key='container' value='<ref>searchDN</ref>' />
</Map>But the bottom example obviously isnt correct. How can I achieve this?
Cheers
CraigaDunfee I would like to thank you for your quick input.
It didnt work, but I found how to write the same thing in express rather than using XML Object Language:
<map>
<s>container</s>
<ref>searchDN</ref>
</map>And that worked :-) -
when trying to attach an XSLT to an XML file I am getting this error message:
"the value specified in the xslt file field is not an xslt file."
this is the first time I am ever doing this and I dont have the faintest clue what might be wrong and how to go about fixing it...
help?http://www.w3schools.com/xml/xml_xsl.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web-design.blogspot.com/ -
How to create selectOneChoice with option to write value in field?!
Hi. I want to know how can I create SelectOneChoice object in my form, so that if I do not have value in SOC defined then I can write value in it, when running my app. Hope You understand me.
Best regards, Debuger.Hi, Cvele! Can You please give me full example what I need to do to solve my problem. Where I need to put this function (in Jspx page?) What I need to change in this function and what I need to change in this method:
public String onCreateNewDepartment() {
BindingContainer bindings = this.getBindings();
OperationBinding create = (OperationBinding) bindings.get("Create");
create.execute();
//bring up the popup
RichPopup.PopupHints hints = new RichPopup.PopupHints();
createDepartmentPopup.show(hints);
return null;
}Best regards, Debuger! -
Create Report with Image on the backside of first page
Hi there,
I want to create a report with a header-section (including data and a barcode) and some data in the main section. The main section is diffing in length so that the report might be just one page or 4-5 pages or even more.
In addition I want to print an image on the backside of the first page.
The image exists in TIFF-Format and it should be printed in landscape, while the report itself is inmPortarit-Mode.
The report(s) should be printed automatically (without user-interaction).
Thanks for any ideas.
Mark RadermacherMark,
The reply could be a bit delayed and you might have got it working also.
All your requirtements are easily achieveable, you might want to look into the building reports samples and publishing reports documenation at
http://otn.oracle.com/docs/products/reports/content.html
Thanks
The Oracle Reports Team -
How to create DOM with node and its value
<Order>
<Manifest>
<Item>
<ID>101</ID>
<NAME>Name one</NAME>
<PRICE>$29.99</PRICE>
</Item>
</Manifest>
</Order>
i can write the code to create a DOM for this one.
but how can i write the code to get the DOM as shown below
<Order>
<Manifest>
<Item name="xxx">
<ID>101</ID>
<PRICE>$29.99</PRICE>
</Item>
</Manifest>
</Order>Your question appears to be how to get an attribute applied to an element. Is that right?
If so, use the setAttribute() method of the Element interface. -
I have tried to use CS6 to create galleries like the on CS3 can create to update my website but I cannot reproduce what I do in CS3 can somebody help me?
Thank you very much.
Regards
Francescofsveltophoto wrote:
I have tried to use CS6 to create galleries like the on CS3 can create to update my website but I cannot reproduce what I do in CS3 can somebody help me?
The answer is maybe. I do not know if you can on a Mac I know MAC is 64 Bit only and the was no 64bit Picture Package Plug-in for the Mac CS5. I do not know about Mac Web Photo Gallery.
If your using windows and have the perpetual version of CS6 version 13.0.1.2 for windows you can install the CS5 optional plug-ins for Photoshop into that version of CS6. Web Photo Gallery (WebContactSheetII) plug-in will function if you install the necessary files. However if your a subscriber to CC some plug-in support has been removed from CS6 version 13.1.2 and CC. A Feature that old plug-ins like Web Photo Gallery and Picture Package used is no longer available in Photoshop.
Adobe did add a poorer web gallery feature into the Bridge's output module but the new galleries can not be customized as well as Photoshop old Web Photo Gallery can be customized.. -
Change the value of a attribute through xpath in orchestration with untype message
This is my orchestration:
In Message Assignment Shape of Construct_BookMessage ,I wrote the following code:
BookMessage=InputMessage;
AuthorName=xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])");
System.Diagnostics.EventLog.WriteEntry("Old AuthorName",AuthorName);
AuthorName="Prakash";
xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])")=AuthorName;
AuthorName=xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])");
System.Diagnostics.EventLog.WriteEntry("New Author Name",AuthorName);
OutputMessage=BookMessage;
InputMessage and OutputMessage are of System.Xml.XmlDocument type and BookMessage is of Book schema type.
But I am getting the following error in admin console:
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'UntypeMessage.UntypeOrchestration(275c2c0e-1d69-1d6a-8add-afc5051106ec)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: da2fc832-9c6a-4fd2-82b2-324707b8bea7
Shape name: Construct_BookMessage
ShapeId: f8b3fa0c-7c13-4357-b7a8-cfa05e20fe16
Exception thrown from: segment 1, progress 9
Inner exception: Expression must evaluate to a node-set.
Exception type: XPathException
Source: System.Xml
Target Site: System.Xml.XPath.XPathNodeIterator Select(System.Xml.XPath.XPathExpression)
The following is a stack trace that identifies the location where the exception occured
at System.Xml.XPath.XPathNavigator.Select(XPathExpression expr)
at System.Xml.XPath.XPathNavigator.Select(String xpath)
at System.Xml.XmlNode.SelectNodes(String xpath)
at Microsoft.XLANGs.Core.Part.XPathStore(Object rValue, String xpath)
at UntypeMessage.UntypeOrchestration.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Can anyone help me why it is occuring ?
PrakashIn your assignment statement you should remove the "string(....)" XPATH method. So if you use
xpath(BookMessage,"/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()='']")=AuthorName;
it will work. Now the Left-Hand-Side of the expression does evaluate to a node set (in this case it would evaluate to an XmlAttribute).
Regards. -
How to Create Charts with the variable value
Hi,
I have to create a crystal report in which i have given variable under "Facility:". I have kept two variables under facility of which one is like you can select one or more values and other one u can select only one value and i mentioned it as mandatory.
What i wanted is, I have to create a bar chart based on the facility . I also want to create a pie chart using the value of facility which comes from the mandatory variable.
To be more clear, I selected two facilities, say X & Y under the first variable and one facility, say Z under the second variable (mandatory). I was able to prepare bar chart with these three facilities. Now i want to prepare a pie chart using the value Z.
Can anyone please help me out?Likely a bug in the ChartBuilders or the JDK.
ScatterChartBuilder.<Number, Number>create().build(); // does not work either.javac is unable to determine if the create() method from SceneChartBuilder or the create() method from RegionBuilder should be applied.
The AxisBuilders which also derive from RegionBuilder work because they don't define their own create method with obscure generic type info.
How can I resolve the ambiguity?new ScatterChart ;-) -
Create document with refrence + update some fields by passing some values
Hello Experts,
I have a small problem . I have to create the sales order from BAPI ...but the scenario is
have to create with refreence to another document
some fields like condition types or material or order quantity etc are passed from an excel sheet
hence some information which is populated in excel sheet should be picked up rest everything should be picked up
from the refrence document
How can use both information (from the refrence document and externally passed from the excel) and create a new document
please suggest!!!!
regards,
KhushyHi,
I am not sure whether I really understand your request. Let me try to help.
> Example: <FT_TAB> TYPE STANDARD TABLE,
> <FS_TAB> TYPE ANY,
>
> DATA: INT_TAB is my dynamic table values.
>
>
> LOOP AT INT_TAB.
> ASSIGN COMPONENT 'MATNR' OF STRUCTURE <FS_TAB> TO <F_VALUE>
> <F_VALUE> = INT_TAB-MATNR.
> APPEND <FS_TAB> TO <FT_TAB>
Here <FT_TAB> must already be assigned to some internal table with a given (dynamic) structure. Did this happen before this piece of code?
What I would do is to create a dynamic table (see documentation to CREATE DATA) with MATNR and the STYLE field (LVC_T_STYL). See the documentation for CREATE DATA - creation of internal tables. When collection the field descriptions for that internal table I would also build the field catalogue for the ALV.
Then assign <FT_TAB> to that newly created internal table, <FS_TAB> to a newly created structure (same as a table line).
Move the MATNR to component 1 (or component 'MATNR') of the table and fill the style table according to your needs. Then insert the <FS_TAB> into <FT_TAB>.
Finally call the ALV SET_TABLE... method with your dynamic table and your field catalogue.
Regards,
Gerd Rother -
Unable to create table with column default value with date interval
Please help to create table with calculated date defaullt value:
CREATE TABLE emp (
birth_date DATE DEFAULT sysdate + interval '3' day NOT NULL
or
CREATE TABLE emp (
some_date DATE,
birth_date DATE DEFAULT some_date NOT NULL
or
CREATE TABLE emp (
some_date DATE,
birth_date DATE DEFAULT some_date + interval '3' day NOT NULL
below syntax error:
TT1001: Syntax error in SQL statement before or at: "+"I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
Chris
Maybe you are looking for
-
How to count number of checkboxes selected from a table in sapui5
Hi I have a table in which one of the column is checkbox. Now user can check 'n' number of checkboxes in the same column. So now i need to count the number of checkboxes selected in that column. how to do that..?? Please help me on this. Thanks Sathi
-
Can you edit older Dreamweaver files (CS5, etc.) in Dreamweaver CC?
I'm contemplating purchasing the CC subscription for Dreamweaver and some other products and need to know the backwards compatibility. For instance can the Dreamweaver CC files be read and edited in older versions of Dreamweaver such as CS5? I'd al
-
ITunes cannot connect to the internet
"iTunes could not connect to the iTunes Store. The network connection timed out." "Home Sharing could not be activated because an error occurred (-3259)." These are examples of error messages that I have gotten since downloading iTunes on my new netb
-
How do I turn turn off the right pane in Adobe Reader XI?
I have been using Adobe Reader since 2007, and recently I have been unable to turn off the right pane while reading. If anyone knows how I can deal with this problem, I would really appreciate it. Thanks Don Randall
-
Ipod suddenly does not show up in iTunes
Would anyone know why my iPod Nano suddenly does not show up in iTunes, when it is plugged in?