Determine number of resources affected by "transition in"
If a MPR/Workflow is kicked off based on resources transitioning into a set, is there a way to determine how many records were transitioned in? E.g. the existing set already contains 50 resources and after the transition in, it contains 60. I basically
want to find that 10 resources have been added since last time.
Thanks.
There is a couple of ways how to achieve it.
If you want to know only the latest 10 and they were added during last month, you can query FIMService for requests or workflow instances with a name of workflow that was invoked. Then you can check targets of those requests
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.
Similar Messages
-
Determining number of teenagers living in a street
I'm creating a java program to determine how many people are in a street, and how many of those people are teenagers. The information is gathered from an input file which is featured below.
INPUT FILE*
12 20 13 19 34 80 0 14 75 17 50 1 11 11 30 90 15 16 70 50 -2
CODE*
/* Session7A07.java */
/* Determines number of teenagers living in a street */
import java.util.*;
import java.io.*;
public class Session7A07
public static void main (String[] args) throws FileNotFoundException
/* variable declarations */
int age,
people_count,
teenage_count ;
File age_file = new File("Session7A07.txt");
Scanner age_data = new Scanner(age_file);
age = age_data.nextInt();
while (age >= 0)
++ people_count ;
if (age >= 13 && age <= 19)
++ teenage_count;
age = age_data.nextInt();
System.out.printf ("Teenage Count = %d%n", teenage_count) ;
System.out.printf ("People Count = %d%n", people_count) ;
ERRORS_
M:\>javac Session7A07.java
Session7A07.java:23: variable people_count might not have been initialized
++ people_count ;
^
Session7A07.java:25: variable teenage_count might not have been initialized
++ teenage_count;
^
Session7A07.java:29: variable teenage_count might not have been initialized
System.out.printf ("Teenage Count = %d%n", teenage_count) ;
^
Session7A07.java:30: variable people_count might not have been initialized
System.out.printf ("People Count = %d%n", people_count) ;
^
4 errorsCurrently have 4 errors and would greatly appreciate the help.
Thanks in advance.redfalconf35 wrote:
int age,
people_count,
teenage_count ;the compiler doesn't like that you declared your variables but didn't initialize them to a valueTo expand on that: Member variables (those declared in the class, but outside of a method) are initialized with a default value if you don't explicitly initialize them. Variables declared in a method aren't given a default value, so if you use them without first setting their value, the compiler complains. Your while loop's body isn't guaranteed to be entered, so there's no guarantee that your variables will be set before use. -
Wrong number of resources in pager component
Hi all,
I wrote a custom Resource List Filter which I activated in a certain Layout Set.
The filter only shows unread documents of the authenticated user and does what it should do...
I only have the problem that the Pager element counts all resources an not only the filtered ones.
A little example:
I have 512 documents in a certain repository but only 301 unread documents. The Pager shows as last entry 512, but it should be 301. If I click on 512 the entry disappears and 301 is the last entry as it should be.
Is there perhaps a possibilty to initialize the pager again after filtering to show the correct number of resources, or any ideas what else could be the mistake (i think there must be a mistake because that can´t be wanted behaviour)?
Many thaks for your help
Best regards
AlexI assume you have this in a Java snippet and the method is defined within the JSP. Ok, then you should call as follows:
String num = c(a,b,c);
When you call a method, you don't include the Types in the call-- that's only when you define the method.
Hope this helps. -
Is there any function module to determine number of months ,when i give two dates ,ie startdate and enddate .
thanks in advance.
ravi.sHi,
Check this.
MONTHS_BETWEEN_TWO_DATES
Laxman -
Determine Number of Decimal Place using BigDecimal
I was interested to have the following getNumberOfDecimalPlace function :
System.out.println("0 = " + Utils.getNumberOfDecimalPlace(0)); // 0
System.out.println("1.0 = " + Utils.getNumberOfDecimalPlace(1.0)); // 0
System.out.println("1.01 = " + Utils.getNumberOfDecimalPlace(1.01)); // 2
System.out.println("1.012 = " + Utils.getNumberOfDecimalPlace(1.012)); // 3
System.out.println("0.01 = " + Utils.getNumberOfDecimalPlace(0.01)); // 2
System.out.println("0.012 = " + Utils.getNumberOfDecimalPlace(0.012)); // 3
I use the following code
public static int getNumberOfDecimalPlace(double value) {
final BigDecimal bigDecimal = new BigDecimal("" + value);
final String s = bigDecimal.toPlainString();
System.out.println(s);
final int index = s.indexOf('.');
if (index < 0) {
return 0;
return s.length() - 1 - index;
}However, for case 0, 1.0, it doesn't work well. I expect, "0" as result. But they turned out to be "0.0" and "1.0". This will return "1" as result.
0.0
0 = 1
1.0
1.0 = 1
1.01
1.01 = 2
1.012
1.012 = 3
0.01
0.01 = 2
0.012
0.012 = 3
Any solution?Please [don't cross-post!|http://stackoverflow.com/questions/2296110/determine-number-of-decimal-place-using-bigdecimal], it's considered rude. If you must do it, then at least link each post so that people can find out which answers you've already got in order to avoid duplicate work on our part.
Please read [_How To Ask Questions The Smart Way_|http://www.catb.org/~esr/faqs/smart-questions.html]. -
OIM 11g - Restricting the number of resources to one on Request Creation
Hi All,
We have a requirement wherein when a requester tries to create a Provision Resource request type(be it for himself or for others), he shouldn't be allowed to request for more than one resource in a single request. If a user chooses more than one resource, he should be prevented from proceeding further and also a message should be shown to the user indicating that only resource should be chosen for this request.
Can this functionality be achieved in OIM 11g?
Any kind of help or suggestion is greatly appreciated.
Thanks
DeepaI already have an enhancement request for this as the only plugin which Oracle provides for request creation is ValidationHandler. The validation handler is called 'number of resources' X 'number of users' and there is no static construct in the plugin either.
Thus workarounds:
1. Check for multiple resource selection in your SOA Approval process (this should not be at the orchestration level) and reject the request if there are more then one selection.
2. As Kevin pointed out, in 9x xlWebAdmin.properties file can be used to set the following properties for single resource selection during requests. You can try to look for this information oim 11g properties files and test it out. -1 here means no limit.
request.resource.users.size=-1
request.resource.organizations.size=-1
request.resource.resources.size=-1-Bikash -
Using MASSG to determine number ranges in NUMKR
Hi,
I am trying to get NUMKR to determine number ranges using reason for action(MASSG). A new business unit is coming onboard and need to keep their existing staff numbers. Therefore two number ranges were set up. 01 for external and 02 for internal.
A reason for hire action exists with the reason 99 - Data migration.
NUMKR is set as follows.
If MASSG = 99 and employee group = 1 then choose number range 01 otherwise if MASSG <> 99 and employee group = 1 then choose number range 02.
However when running PA40. This does not work and it ends up always picking the otherwise option.
Has anybody else experienced this?
Thanks in advanceHi David
There seem to be an error while setting the feature. You are adding another condition of EG=1 in the otherwise & that is probably causing an error. Can you set the feature as follows:
Country Code = 99 > EG =1> MASSG = 99 --> 01 otherwise 02. And the otherwise that you get at the country code level =02 unless you have other country Molga's defined. Please check that all the employees that you are trying to get into the system initially are EG =1 else it will not work. After creating the feature & ensuring that the feature is error free, activate it.
Regards
UR -
Get the number of rows affected by update statement
Hi
I'm working on an application that uses OCI as interface against an Oracle database.
I'm trying to find out how i can get the number of rows affected by a query executed with OCIStmtExecute. it is not a select query.
Best regards,
Benny TordrupIf I run a bulk UPDATE query using OCIBindArrayOfStruct, is there a way I can tell which+ rows successfully updated?
I have a file of records of which 75% of PKs are already in the table and will be updated, the other 25% aren't and should be inserted later. I want to attempt an UPDATE statement using OCIBindArrayOfStruct to execute in bulk and then check which entries in my bulk array successfully updated. If an array entry isn't successfully updated then I will assume it should be inserted and will store it for a Direct Path load later.
Many thanks for any advice you can give as I've been trawling through the docs trying to find a solution for ages now. -
How to determine number of photos I have?
I cannot find anywhere in Photoshop Elements where it tells the total of photographs I have in my collection. The old version told this number in the lower right hand corner. Is there somewhere in this newer version where I can find how many photos I have without having to count them? Please help. Thanks.
Thanks so much Neale!!!
In a message dated 2/19/2014 7:05:52 P.M. Eastern Standard Time,
[email protected] writes:
Re: How to determine number of photos I have?
created by nealeh (http://forums.adobe.com/people/nealeh) in Photoshop
Elements - View the full discussion
(http://forums.adobe.com/message/6137888#6137888) -
How to determine number range for billing document based on company code ..
Hi Friends!!
can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
Amit...plz help me!!Hi Amit,
1. Define different Billing Document number ranges in SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
e.g.
NO. From number To Number Current number Ext
A1 0930000000 0930999999
A2 0940000000 0940999999
A3 0950000000 0950999999
2. Define a Ztable ZNUMB_RANGE as follows
Comp. Code | Tax departure country | Billing Doc Type | Number Range
100 IN F2 A1
200 IN F2 A2
200 US F2 A3
3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
If found pass this number range value to us_range_intern.
us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
Let me know if you are clear.
Thanks,
Mandar -
ExecuteNonQuery doesnt return number of rows affected when used with PL/SQL
ExecuteNonQuery doesn't return number of rows affected when used with PL/SQL but returns -1. The documentation says ExecuteNonQuery method of OracleCommand returns the number of raws affected but when used with PL/SQL, it returns -1 even the update statement successfully executes and affects multiple records with no exeptions thrown.
However, if ExecuteNonQuery is used with update sql statement in the asp.net code it returns number of rows affected correctly. Does anybody know why ExecuteNonQuery behaves like this?
I am using ODP.NET that comes with Oracle Client 11g. The version is 2.111.6.20 of ODP.NET, Oracle database server is 10g.
MaratYou can get the rowcount in the stored procedure via SQL%ROWCOUNT and then pass it out as a parameter.
For example:
SQL> create or replace procedure updatesal(v_deptno in number, v_rowsaff out number) as
2 begin
3 update emp set sal = sal * 5 where deptno = v_deptno;
4 v_rowsaff := SQL%ROWCOUNT;
5 end;
6 /
Procedure created.Cheers -
Is number of users affect the performance?
Hi,
Is number of user affect the performance?
Is there any limit to number of user that java can handle at a time.PrasadW_Java_forum wrote:
Is number of user affect the performance?Not directly. It just eats memory, network traffic and CPU power. If one or more of them runs out, then it will affect performance. Bad code design will speed up this effect.
Is there any limit to number of user that java can handle at a time.I am not sure, but it shouldn't surprise me if there is some technical limitation with the same value as Integer.MAX_VALUE. Though, you still need a lot of memory/storage to achieve this :) -
How to determine number of records in recordset returned by stored procedure?
In TestStand 3.0 I am calling an SQL stored procedure where the stored
procedure returns a recordset. Everything appears to work (I can
iterate through the recordset and see that the data is valid).
However, I can not figure out how to easilly determine how many
records are actually in the recordset. Unlike the 'Open SQL
Statement' step, in the 'Data Operation' step that actually invokes
the stored procedure, there is no 'Number of Records Selected' option
to specify a TestStand variable to accept this value. I know I could
iterate through the returned recordset incrementing a counter until a
Fetch fails, but for larger recordsets, traversing the table multiple
times would be quite time consuming
. I am hoping to avoid this if
possible. Is there an easier way to get the number of records in a
recordset returned from a stored procedure call?
BobBob -
The cursor type of the ADO Recordset object affects whether the number of records can be determined. The Recordset.RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source.
Because ADO does not let me set the cursor type for command objects which is what a stored procedure requires, it is up to the data source to determine the type of cursor and the support for record count.
Scott Richardson (NI)
Scott Richardson
National Instruments -
Without looping: Determine number of unique values in a set
Hi all,
I was wondering if anyone has any advice on determining the
number of unique items in a set. For example:
If I have an ArrayCollection
public var someData:ArrayCollection = new ArrayCollection([
{id:"1", color:"Red", value:5"},
{id:"2", color:"Red", value:"4"},
{id:"3", color:"Green", value:"17"},
{id:"4", color:"Red", value:"3"},
{id:"5", color:"Blue", value:"4"}]);
What I want returned is just Red, Green, Blue
but not Red, Red, Green, Red, Blue. Or even better would
just be a number telling me how many unique values are in the set.
I've spent hours digging through the asdocs but have not found
anything that performs this type of analysis and I've typically had
to resort to endless loops (which can affect performance when the
data set is large).
I would appreciate any words of wisdom."shawn.yale" <[email protected]> wrote in message
news:ghs5lo$fkb$[email protected]..
> Hi all,
> I was wondering if anyone has any advice on determining
the number of
> unique
> items in a set. For example:
>
> If I have an ArrayCollection
> public var someData:ArrayCollection = new
ArrayCollection([
> {id="1", color="Red", value="5"},
> {id="2", color="Red", value="4"},
> {id="3", color="Green", value="17"},
> {id="4", color="Red", value="3"},
> {id="5", color="Blue", value="4"}]);
>
> What I want returned is just Red, Green, Blue
but not Red, Red,
> Green,
> Red, Blue. Or even better would just be a number telling
me how many
> unique
> values are in the set. I've spent hours digging through
the asdocs but
> have
> not found anything that performs this type of analysis
and I've typically
> had
> to resort to endless loops (which can affect performance
when the data set
> is
> large).
>
> I would appreciate any words of wisdom.
You could use a GroupingCollection with a SummaryRow.
HTH;
Amy -
How to determine prices in Resource Related Billing(RRB)
Dear Experts,
I am working for service related client.in this SD,PS,HR and CO are integrated.
from SD i have to create resource related billing.here while running DP91 how the system determines the resources related pricing.
My doubts are:
1.Whether prices are determined automatically or we will maintain manually?
2.If prices are automatically:how and where we maintain?
3.If prices are manually:how and when to maintain?
I heard that to determine prices automatically by system i have to create Z table.
Z table because,prices are differ from projects,and position of the employee.
Thanks for helping,
Ravikumar.RYes, price determination is automatic
If you have worked on DIP profile, there you might have come across term called Source.
Based on the source system determines the pricing data.
And SAP provide 9 different sources for different process like:
1.
Actual costs - Line items (most popular)
2.
Actual costs - Totals records
3.
Statistical indicators - Line items
4.
Statistical indicators - Totals record
5.
Funds - Line items
6.
Funds - Totals records
7.
Planned Statistical indicators - Totals records
8.
Planned costs - Totals records
9.
Easy Cost Planning (Generally used with PS Project)
Details of source each can be learnt from SAP Help.
Regards
JP
Maybe you are looking for
-
My computer (PC) will not recognize my ipod touch anymore. When I plug it in, it says the USB device attached to this computer has malfunctioned and windows does not recognize it. I have tried attaching the same cord and ipod to a different computer
-
Electric shocks in iPhone 4 and Macbook Pro
Hi When I first started using my white 32GB iphone 4 a month ago, I felt very slight electric shocks and static-like feeling and a kind of pins and needles feeling in my hands. I soon either forgot about it or got used to it. Then 2 weeks ago, I got
-
HELP IN KEITHLEY output source PROGRAM!(how to change GPIB to serial port)
As the topic suggest,can anyone help me in changing from GBIP to serial port?The file is found inside the .lib that i attached. filename:2400 swI Linear Stair MeasV - LED.vi thanks! Attachments: KEITHLEY PROGRAM.zip 434 KB
-
When trying to access itunes i get Error 2 (windows error 2)
Since i done the last update when trying to access itunes from the desktop icon,first it said communications problem so i unistaleed it and reinstalled it,now get this error 2 ( windows error 2 ). Have reinstalled it 5 times,i only use ituned for my
-
How to add dynamic columns & rows
I want to display the data in the columns (seperated by partition) of the fieldNames I select. Suppose my Query is like Select Fax,Phone from Customers Now I want to display the data of Fax& Phone in two different columns & its heading as also Fax &