if (annotationInfo == null)
{
return;
}
ConversationRequire conversationRequire = annotationInfo.getConversationRequire();
if (conversationRequire == null)
{
return;
}
// check if we are on an ignored view
String[] entryPoints = conversationRequire.entryPointViewIds();
if (entryPoints != null)
{
for(String ignoredView: entryPoints)
{
if (!StringUtils.isEmpty(ignoredView) && ignoredView.equals(viewId))
{
return;
}
}
}
// check that all the required conversations already exist
ConversationManager manager = ConversationManager.getInstance();
String[] conversationNames = conversationRequire.conversationNames();
if (conversationNames != null)
{
for(String conversationName: conversationNames)
{
if (!manager.hasConversation(conversationName))