191k views
1 vote
Which of these is the recommended way to trigger activities in a Lifecycle even in a particular order?

1) Create child lifecycle events that are triggered when the previous one is complete
2) Create separate activity sets and set each to be triggered on a specific date
3) Create activity containers and establish an order for each activity
4) Create separate activity sets and set each to be triggered based on the closure of the previous activity set

User KepPM
by
8.0k points

1 Answer

5 votes

Final answer:

The recommended way to trigger activities in a Lifecycle event in a particular order is to create activity containers and establish an order for each activity.

Step-by-step explanation:

The recommended way to trigger activities in a Lifecycle event in a particular order is to create activity containers and establish an order for each activity. This allows you to define the sequence of activities and ensures that they are executed in the desired order.

Creating child lifecycle events is not the recommended approach as it can lead to confusion and difficulties in managing the flow of activities. Setting activity sets to be triggered on a specific date may not guarantee the required order. Similarly, setting activity sets to be triggered based on the closure of previous sets may lead to unpredictable results if activities are completed out of order.

By using activity containers and establishing an order for each activity, you have more control over the sequence and can ensure that activities are triggered in the desired order.

User Josiah Keller
by
8.6k points