Documentum xCP 2.0 creating multiple objects - business-process-management

I am using xCP Designer 2.0 and I'm trying to create multiple objects at once. Say I receive the number 20 as input and need to create 20 of these objects with an increasing integer attribute from 1-20.
Is it possible to achieve this with a stateless process? How exactly?

You have at least 2 options:
write an custom Java code an execute in inside Call Java Service activity
create specific process flow to achieve it
If you decide for first, you can check how to integrate your custom (Java) code to the xCPDesigner via self paced tutorial which you can download from this link. You find useful things on this link too.
If you choose second approach, do it this way:
Add process variable like here
Model a stateless process like on the picture
Define loop_count++ activity like on the picture
Note that loop_count++ activity is of type Set Process Data.
Additionally, you need to set trigger tab on Join activity like in a picture:
You will know what to do in Create activity. ;)
EDIT: I just saw I overlooked you stated that you set 20 when initiating stateless process. Logic is the same, you just use Substract function in loop_count++ activity (you can consider changing activity name too) :)

Related

How does Adobe Dynamic Tag Management detect st.tl variables pushed to the data layer after the DTM scripts have been loaded?

We are looking at using data layer to capture all events, and then have DTM read off of this. It makes sense for the s.t/pageload call - but how does it work with link tracking that get added to the data layer after the DTM scripts have already loaded?
Hi MaximusDecimusMeridius -
This can be done using a few different methods. The most convenient is to use an event based rule that listens for an action (click, for example) and set your variables with your defined data elements within the rule UI.
The other option is to set your variables within the AA "custom page code" of the rule with JavaScript.
Hope this helps.

Best way to manage Data with Parse?

I am creating a social app and will be handling large amounts of data. I have a certain part of my app where you can create four different types of events. My question is, would it be better to separate these four types into different classes: eventType_One, eventType_Two, eventType_Three, and eventType_Four to create smaller queries?
Or should I put all the events into one class events, therefore only creating one API request instead of four. On several pages I need to query through each class. I also will only have the basic plan: 30 requests
I'd create a class EventType and an Event having the EventType as a relation. So you fetch the available types once and then your desired events. You want to limit the number of API calls as much as possible to a) not exceed your free plan and b) have fewer requests on the client side.
I have created a similar social app and I modeled it after parses AnyPic. Parse uses 1 Class Activity which handles activities like: likes, comments, and follows. You can add your own events/activities to it if needed. Checkout AnyPic
If you need to do something like photo, video, or galleries, I would recommend turning the photo class into a post class and adding a type field. Either way using the AnyPic model you should be able to add activities/events as needed.

Practical uses of nsICategoryManager?

I'm working on a profile switching addon and came across nsICategoryManager.
I was wondering what is this? What are some practical uses for it?
I read the MDN article but can't think of any uses for it.
The purpose of nsICategoryManager is to add entries (typically XPCOM components) to categories. The manager itself merely provides that registration mechanisms, how the categories are used depends entirely on the code that reads out the category entries. For example, there it the profile-after-change category for components that need to be activated when Firefox starts up.
Most extensions should no longer be using nsICategoryManager explicitly, adding a category entry can be done with a line in chrome.manifest:
category profile-after-change MyComponent #foobar/mycomponent;1
This will call nsICategoryManager.addCategoryEntry() implicitly when the extension is activated.
Edit: Just out of curiosity, I decided to search for nsCategoryCache in the Firefox source code to see what other categories there are. Here the list:
"content-policy" for nsIContentPolicy instances.
"net-content-sniffers" and "content-sniffing-services" for nsIContentSniffer instances.
"vacuum-participant" for mozIStorageVacuumParticipant instances.
"bookmark-observers" for nsINavBookmarkObserver instances.
"history-observers" for nsINavHistoryObserver instances.
"idle-daily" for observers managed by nsIIdleService.
These are only the categories being cached and monitored for changes, the complete list is much longer.

Fragments and ViewModels

I am trying to have a single activity with a dynamically created fragment within its view.
I have a ActivityViewModel and a FragmentViewModel and matching views and layouts (ActivityView has a FrameLayout to host fragment). The fragment is shown by calling ShowViewModel<> from within ActivityViewModel.Start method.
I am using a CustomePresenter as described in http://enginecore.blogspot.ro/2013/06/more-dynamic-android-fragments-with.html.
It works fine from cold start and after resume. However, it won't work after activity is destroyed.
This is the sequence that happens in this problematic situation:
Activity is created, Mvx finds a cached ViewModel and attaches it to the Activity. Since ViewModel was cached it won't fire Start method (which triggers fragement creation). That's fine. But in next step Android recreates the fragment but it won't get its associated ViewModel because neither CustomPresenter (which takes care of that when fragment is created) or MvxFragment.OnCreate won't create it - like MvxActivity mechanism does. And thus I get a ViewModel-less fragment.
So I wonder, shouldn't be good if MvxFragemnt creates its own ViewModel upon create like MvxActivity does? Furthermore it should handle Save,Resume (call to adjacent ViewModel's methods).
Or perhaps I am handling this in wrong way or missing something.
I created a sample which describes the same problem, you are describing. You can alter the sample, to support multiple regions with multiple fragments in it. These regions can be used in presenter as well.
Please take a look at this presenter sample, which shows of a simple implementation of using fragments in an Android project: https://github.com/JelleDamen/CustomMvxAndroidPresenter
FYI:
I used the same tutorial as an inspiration. Let me know if you need any help with it.
Sorry, you are correct.
This behavior can be reproduced when creating a simple app with an activity and a fragment and then in the 'developer options' choose to always destroy activity. Now switch to another app and then switch back.
Init and Start are not called, the activity view-model is obtained from the cached view model.
This isn't related to fragments, it's about how view-model works for activity.
Now, regarding the fragment lifecycle and the fact that it doesn't get the view-model bound, as you mentioned, currently this is not available in Mvvmcross.

Add or remove events into a StreamInsight window

Is there a way to retain all events and just add or delete events as desired in StreamInsight? In Esper there is a method called keepall() witch can be applied on a window. This method keeps all incoming events and you can have different queries for inserting events in the window or deleting them.
I tried using Hopping, Snaphot, Tumbling and Count Window in StreamInsight, but none of them has the above mentioned functionality.
Thanks.
You should be able to do something like you are asking about with a window using a User-Defined Operator. Here's a link to the MSDN documentation: http://msdn.microsoft.com/en-us/library/ee842720(v=sql.111).aspx
If you want to interact with the events in a procedural way without a window then take a look at User-Defined Stream Operators. The docs for that are here: http://msdn.microsoft.com/en-us/library/hh290514(v=sql.111).aspx
With more detail about what you are trying to accomplish, I can give you a better answer.

Resources