try
{
UserBusinessActivity uba = UserBusinessActivity.getUserBusinessActivity();
BusinessActivityManager bam = BusinessActivityManager.getBusinessActivityManager();
DemoBusinessParticipantWithComplete p = new DemoBusinessParticipantWithComplete(DemoBusinessParticipantWithComplete.COMPLETE, "1234");
uba.begin();
bam.enlistForBusinessAgreementWithCoordinatorCompletion(p, "1234");
uba.complete();
uba.cancel();
passed = p.passed();
}
catch (Exception ex)
{
ex.printStackTrace();
}