Re: {Spam?} Re: {Spam?} Getting ALL open activities

[email protected]
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <OF9EB16C05.C45C41A0-ON8525703B.006E234B-8525703B.006E6C95@intellicare.com>
Seems a bit off..? Here's what SharkConstants.java has:

public static final String[] POSSIBLE_ACTIVITY_STATES = {
      SharkConstants.STATE_OPEN_RUNNING,
         SharkConstants.STATE_OPEN_NOT_RUNNING_NOT_STARTED,
         SharkConstants.STATE_OPEN_NOT_RUNNING_SUSPENDED,
         SharkConstants.STATE_CLOSED_COMPLETED,
         SharkConstants.STATE_CLOSED_TERMINATED,
         SharkConstants.STATE_CLOSED_ABORTED};

Seems to me if an activity hasn't even been accepted, then surely it 
should be in the STATE_OPEN_NOT_RUNNING_NOT_STARTED state?




Leonardo Mira <[email protected]> 
07/11/2005 04:43 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
{Spam?} Re: {Spam?} [shark] Getting ALL open activities






I tried now, and didnt worked...
Checking in Shark, both activities state is OPEN_RUNNING. The only 
difference is that one is accepted and the other is not.

Leonardo Mira

[email protected] wrote:

>
> Hi Leonardo, did you try with state as 
> SharkConstants.STATE_OPEN_NOT_RUNNING_NOT_STARTED?
>
> Geeta
>
>
>
> *Leonardo Mira <[email protected]>*
>
> 07/11/2005 04:00 PM
> Please respond to
> [email protected]
>
>
> 
> To
>                [email protected]
> cc
> 
> Subject
>                {Spam?} [shark] Getting ALL open activities
>
>
>
> 
>
>
>
>
>
> Hi,
>
>  I am trying to create a expression that returns all open activities.
>  The following code was developed, but it only returns the accepted
> activities...
>
>        WfActivityIterator wfActivityIterator =
> executionAdministration.get_iterator_activity(sharkTransaction);
>
>        ActivityIteratorExpressionBuilder
> activityIteratorExpressionBuilder =
> expressionBuilderManager.getActivityIteratorExpressionBuilder();
>
> 
activityIteratorExpressionBuilder.addStateEquals(SharkConstants.STATE_OPEN_RUNNING);
>        wfActivityIterator.set_query_expression(sharkTransaction,
> activityIteratorExpressionBuilder.toExpression());
>
>        WfActivity[] wfActivities =
> wfActivityIterator.get_next_n_sequence(sharkTransaction, 0);
>
> Does anyone know what must be done to get de non-accepted activities?
>
> Thanks
> Leonardo Mira
>
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> --
> You receive this message as a subscriber of the [email protected] 
> mailing list.
> To unsubscribe: mailto:[email protected]
> For general help: mailto:[email protected]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
> CONFIDENTIALITY NOTICE:This email is intended solely for the person or 
> entity to which it is addressed and may contain confidential and/or 
> protected health information.  Any duplication, dissemination, action 
> taken in reliance upon, or other use of this information by persons or 
> entities other than the intended recipient is prohibited and may 
> violate applicable laws.  If this email has been received in error, 
> please notify the sender and delete the information from your system. 
>  The views expressed in this email are those of the sender and may not 
> necessarily represent the views of IntelliCare.
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [email protected] 
mailing list.
>To unsubscribe: mailto:[email protected]
>For general help: mailto:[email protected]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> 
>



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
You receive this message as a subscriber of the [email protected] 
mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


CONFIDENTIALITY NOTICE:This email is intended solely for the person or 
entity to which it is addressed and may contain confidential and/or 
protected health information.  Any duplication, dissemination, action 
taken in reliance upon, or other use of this information by persons or 
entities other than the intended recipient is prohibited and may violate 
applicable laws.  If this email has been received in error, please notify 
the sender and delete the information from your system.  The views 
expressed in this email are those of the sender and may not necessarily 
represent the views of IntelliCare.
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.