Hello,
I am trying to trigger two scripts with a pipeline using a splitter. Only one script always executes if I connect both, in the first output of the splitter. The second one never executes. The scripts are correct because I tested it separately. What could be the reason for this?
Best regards,
Michał
Are they slow scripts? Is there a possibility that it is executing after the first one completes?
def handleAlarm(event):
site = event['FullName']
timestamp = system.date.now()
description = event['displayPath']
EmailNotification.EmailSentConfirmation.emailSent(site, timestamp, description)
def handleAlarm(event):
def createTagPath(itemPath):
listOfElements = itemPath.split('/')
ID = listOfElements[0]
tagPath = '[{}]'.format(ID) + '/'.join(listOfElements)
return tagPath
itemPath= event['itemPath']
tagPath = createTagPath(itemPath)
system.tag.writeBlocking(tagPath, False)
Nothing unusual - write to the tag or insert into the database in the second case
I put it in one and it works but I wonder why it didn't work before. I also tried connecting scripts in series with the option that the first one returned true as it finished and also the second one didn't work